Devon McCormick wrote: > Members of the Forum - > > does anyone else have experience processing XML using the "sax" add-on? I > recently discovered that a tag like this: > > <LegalName>JPMorgan Chase & Co.</LegalName> > > gives me the value " Co." instead of the full name "JPMorgan Chase & Co.". > > The problem seems to be the ampersand character in "&". If I replace > this string by "&", "&", or "&ersand;", I get assertion > errors "not well-formed (invalid token)" for the first two cases and > "undefined entity" for the third. Replacing it with "amp;" gives no error > and I get the full name "JPMorgan Chase amp; Co.".
This is actually legal but extremely annoying. See http://www.xml.com/pub/a/2001/12/05/sax2.html tip #2. Best wishes, John ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
