Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Outputting a hash as XMLby Tanktalus (Canon) |
on Mar 16, 2005 at 22:26 UTC ( [id://440171]=note: print w/replies, xml ) | Need Help?? |
I have to wonder if mirod would take offense at implying that XML::Twig is less reliable than other choices ;-) For something this small, XML::Twig may be overkill. But for the project we're working on at work, "just us[ing] print()" is actually less reliable. Finding and quashing close-tag errors in a multi-MB XML file is painful. Using a module, such as XML::Twig, helps to avoid these errors. And writing a "toXML" function is exactly the same problem that the OP had - just not objectified. For these, I, personally, would still want to rely on an XML module to handle things for me. Just my opinion... :-)
In Section
Seekers of Perl Wisdom
|
|