Hi,

I read all the docs on the various flavours of XML::* (including the "Where to go from here" section) and am still undecided which I should use.

I also tried to follow the link in the following line (from my local html copy of the perldoc):

Don't forget to check out the Perl XML FAQ at: http://www.perlxml.com/faq/perl-xml-faq.html

but that leads to a music site?

My application will be reading an XML-likefile (no DTD or namespaces for now) and using the information to generate the HTML for a page - the XML will be used to supply the values for titles, tables, jpg/png's etc and the default values for fields in forms.

The size (and depth) of the structure should be fairly minimal to start with at least, but will no doubt get expanded over time.

Would those of you in the know, start with XML::Simple or XML:Lite or XML::Parser?

A short note indicating why you would go this route would be appreciated.


Sub-question: The XML::Simple contains the following statement:

XMLout() cannot produce well formed HTML unless you feed it with care - hash keys must conform to XML element naming rules and undefined values should be avoided.

which I do not understand. I see no other references to XMLout producing HTML? Is this a typo?


In reply to Which XML module to use? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.