PHP5 DOM saveHTML() vs. saveXML()
- From: "Max Cantor" <maxcantor@xxxxxxxxx>
- Date: 25 May 2006 12:39:24 -0700
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!
.
- Prev by Date: Re: How do I fetch an array of all field names in a mysql database?
- Next by Date: Re: How do I fetch an array of all field names in a mysql database?
- Previous by thread: How do I fetch an array of all field names in a mysql database?
- Next by thread: Clearing Variable and Functions
- Index(es):
Relevant Pages
|