The Xerces c based parser is available as a Perl module. There is the Xerces-Perl home page, and the module can be found on CPAN XML::Xerces.

According to the Xerces-Perl home page the code is only supported on BSD/Linux/Solaris yet, though they plan to port it to Windows eventually.

Because Unicode support is a bit flakey in Perl 5.6.x it's best to have Perl 5.7.x or better for Unicode support, or better still the current 5.8.x version.

You don't say if you have to have Xerces, or if you are just looking at XML in general, but don't forget Perl's many other excellent XML tools (including):

Mirod has nice articles on Perl/XML - Ways To Rome and What's Wrong with Perl and XML?. Some of the above modules also have reviews in the Module Reviews Section here at PerlMonks.

Update: Updated to reflect recent changes.


In reply to Re: Xerces XML parser by ajt
in thread XML parser by hotshot

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.