I am afraid this might be a mod_perl / Expat problem.

<mode type="cover_my_a**">XML::Twig does not modify the string in any way before it is sent to XML::Parser (or actually to XML::Parser::Expat).</mode>

That said I have never used XML::Twig under mod_perl and I am not familiar with what can go wrong when you do so.

What I know is that there are version conflicts between the version of Expat that comes with XML::Parser and the one that comes with Apache (yes Apache comes with Expat, and it is installed by default as a static library). The only way to be really sure that everything is fine is, IIRC, to first install the lastest Expat from sourceforge, then to install XML::Parser 2.30, then to recompile apache with Expat as a dynamic library. Instructions to do so can be found on Matt Seargeant's AxKit site at http://axkit.org/faq.xml. I can't say that's the problem, but I would definitely not rule it out. Try doing /path/to/apache/bin/httpd | grep -i XML and if you get any result then it might be the problem.

If this fails then post (or send me) the code.


In reply to Re: XML::Twig-parse() error under CGI by mirod
in thread XML::Twig-parse() error under CGI by DrSax

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.