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:
< The less-than sign, or opening angle bracket (<) & The ampersand (&) > The greater-than sign, or closing angle bracket (>) " The straight, double quotation maarks (") ' The apostrophe, or single quote (')
Of these five, only < and & 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML User Info Status?
by mirod (Canon) on May 08, 2002 at 08:48 UTC | |
|
Re: XML User Info Status?
by mojotoad (Monsignor) on May 08, 2002 at 09:07 UTC | |
by tye (Sage) on May 08, 2002 at 15:35 UTC |