I've been using XML::Parser and XML::Parser::Expat for a while, and they work well enough. I've been searching CPAN though, and I can't find anything that either builds DOM trees or does validation of XML files against a DTD. In the past, because I needed that, and because I was writing in perl, I've been forced to come up with some ad-hoc nasty solutions for validation of XML using XML::Parser. Basically, it doesn't follow a DTD per se, but it keeps tags that are open on a stack and uses the nesting information given by the stack to issue warnings, errors, and build data structures and so on. The question is this; am I missing something or is there a CPAN module to do DOM/validation? If not, does anybody know of a project currently under way to meet those needs? I've got some experience in that area, and I'd like to help out if something is coming into existence, but I don't feel like reinventing the wheel if it already does somewhere. Any help would be greatly appreciated. Smartass flames, (which I have heard are an off-and-on problem here at perlmonks, which I am new to) >/dev/null. Because after all, in /dev/null, no one can hear you stream.

In reply to XML things by Anonymous Monk

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.