The User nodes info XML generator still appears to be crippled, as mentioned by grinder a while back.

In addition to ampersands (&), single quotes (') are breaking our friendly neighborhood XML parsers, including XML::Twig which is based on XML::Parser which is in turn based on the expat library.

According to my O'Reilly XML book, there are five entity references predefined in XML:

&lt; The less-than sign, or opening angle bracket (<) &amp; The ampersand (&) &gt; The greater-than sign, or closing angle bracket (>) &quot; The straight, double quotation maarks (") &apos; The apostrophe, or single quote (')

Of these five, only &lt; and &amp; must be used in place of the literal characters in element content, whereas the other references are optional unless there is explicit conflicts within attribute values.

So really this sounds like a case of the expat library being overzealous. Does anyone know how to wrangle XML::Parser into wrangling xpat into being more forgiving?

If not, then why can't these five entity references be properly encoded in the XML user info generator?

Thanks,
Matt


In reply to XML User Info Status? by mojotoad

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.