Interesting you mentioned that entities in attributes silently disappear...it was going to be my next point. The XML I'm parsing has a lot information in the attributes that I need and most of the attributes have entities I need resolved.

Let me think about what to do. I already have most of the parsing code written and my deadline is coming up soon....so I don't know if I'm going to be able to switch over to XML::Twig in time. I will look over the XML::Twig mod and learn more about it. I do have a solution in place to that opens the XML file before the Expat parse and resolves the entities before hand. I don't like to do that, but it solves my problem.

Thanks for all your help. Greatly appreciated! I'm been pondering a solution to this problem within Expat for some time. Since Expat provided a ExternEnt Handler I was assumed I was doing something wrong! What would you use the ExternEnt handler for then???

Thanks again!!!

Adam

In reply to Re^2: XML::Parser::Expat Question by dobrozam
in thread XML::Parser::Expat Question by dobrozam

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.