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 &amp; Co.</LegalName>

gives me the value " Co." instead of the full name "JPMorgan Chase & Co.".

The problem seems to be the ampersand character in "&amp;".  If I replace
this string by "&", "&amp", or "&ampersand;", 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.".

Has anyone else encountered this?  Do either of the other two XML add-ons
handle this better?  Does anyone know if either of the other two
add-ons is better than sax?

Thanks,

Devon

-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to