The San Francisco PHP Meetup Group Message Board › remove comments in XML
| Dave Edelhart | |
|
|
Is there an easy way to strip all comments in an xml using DOMDocument either:
* using DOMXpath * as a setting for saveXML() ? Thanks in advance, Dave |
| Scotty Logan | |
|
|
Try something like this:
$doc = DOMDocument::load("foo.xml");Scotty Edited by Scotty Logan on May 9, 2010 12:25 PM |