Greetings enlightened ones!

I'm experiencing the following difficulty:

using XML::Parse, when an unescaped, single
quote is encountered in the element value, the parser quits stating:

"not well-formed (invalid token) at line 26, column 33, byte 725 at usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/XML/Parser.pm line 187"

I have managed to pinpoint this to be the single quote in Captains Chair
<?xml version = "1.0"?> <newcars> <option> <seq>20</seq> <category>Seats</category> <primary>21B</primary> <secondary>21Bb</secondary> <option_desc>Second Row Captain's Chairs</option_desc> <price_desc>Cloth</price_desc> <retail>530</retail> <invoice>451</invoice> <disc_retail>0</disc_retail> <disc_invoice>0</disc_invoice> </option> </newcars>

If anyone knows something about this, has dealt with it in the past,
has an idea, thinks XML is retarded, and impractical,
or just wants to let me know what an idiot, and pseudo programmer I am...
Please do, I have been struggling with this for a week.

Mooo chos grassy ass:
 ~ vili

In reply to single quotes in XML values by vili

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.