No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
After considering all the alternatives proposed it seems I should still stick to XML::LibXML:
XML::XSH2 as suggested by choroba seems interesting, but it is a language of its own, and overkill for the task at hand that is to generate a XML document from a Perl data structure. Using a templating module as Template doesn't seem like a good option in my case either; my structure is deeply recursive which would make the template complex. Besides that, I don't want to think about escaping data and whether I am generating correct XML. XML::Compile, seems also overkill in this case. The schema is quite big I am only going to use a very small subset. XML::Writer, seems right for the job but I don't like how it works, keeping an implicit tag open and manipulating it. XML::Twig and probably XML::Rules, are excellent modules for parsing XML. So, I am doing as haukex and using XML::LibXML with a couple of helper subs, to get rid of its verbosity (update: Soon to be available from CPAN as XML::FromPerl!) In reply to Re: Recomendations for a XML writer module
by salva
|
|