Profile
Achievement
iroybot's Recent SnippetsTagged xml
- All /
« Prev 1 Next »
For some reason tidy inserts new lines before/after <![CDATA[ content in XML files. Since I like the benefits of a reformatted, readable XML...
... i run tidy first, then remove the spaces before/after the CDATA block:
0
1054
posted 11 years ago by iroybot
I'm using this out of laziness.
PHP is slowing things down here, since it's not as close to C as XPath.
A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
0
835
posted 13 years ago by iroybot
the LIBXML parameter is what this snippet is about. Also this is one way to retrieve XML without having a XML-declaration prepended <?xml>
1
894
posted 14 years ago by iroybot