You are here: PHP5 DOM saveHTML() vs. saveXML() « All PHP « IT news, forums, messages
PHP5 DOM saveHTML() vs. saveXML()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация