|
Posted by Max Cantor on 09/28/64 11:48
Hey guys. I'm generating pages using PHP5's DOM functions, and I
noticed that if I use echo $doc->saveHTML(), it kind of just spits out
the document, but if I use $doc->saveXML( $root, LIBXML_NOEMPTYTAG ),
it outputs the document but the source is formatted nice and
pretty-like, which makes debugging the underlying script a lot easier.
Has anyone worked this way before? Is there a particular reason I
should stick with DOMDocument->saveHTML() instead, that will bite me
later if I keep working this way?
thanks!
Navigation:
[Reply to this message]
|