|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re^3: Manipulate xml with libxmlby BaldPenguin (Friar) |
| on Jun 08, 2005 at 12:24 UTC ( [id://464744]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I confess LibXML doesn't create pretty XML, in fact I normally include variables to strip out the unneccesary whitespace because I send it through XSLT. You can write some kind recursive loop to fix it all or if you are not to worried about speed, send your string to XML::Twig. It has some great pretty_print functionality. I only make the comment about speed because in this you will be effectively parsing your XML twice.
Don WHITEPAGES.COM | INC Edit by castaway: Closed small tag in signature
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||