The only thing I can think is that ParseStream is undefined.
Urm... I don't think so. Let me tell you that I'm just guessing... It looks to me like ParseStream is defined in XML/Parser/Expat.xs, the C bind layer between plain Perl and the C library. At least I can see this in there:
int XML_ParseStream(parser, ioref, delim) XML_Parser parser SV * ioref SV * delim CODE: ...

What I think, is that ParseStream() needs a callback for each "event". That means that this function calls some plain Perl subs. And I think that there is where something goes wrong. Perhaps it simply misses a proper callback sub.

Could you make a small XML file available, that is compatible with your program, and which exhibits the problem? That way, I, and maybe some other people here as well, could play a little with your program.


In reply to Re: XML-Twig by bart
in thread XML-Twig 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.