If you have a string "Tom&Gerry" you  need to use "Tom&Gerry".  You may
need to "Normalize" the string before you pass it onto the parser.

These are called character entities.  They are in the form of &word; There
are a couple more that you might run into:
< &lt;
> &gt;
" &quot;

Look at the DomWriter example which comes with xerces for an example on how
to Normalize a string.

-Linda Derezinski


 -----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent:   Tuesday, May 02, 2000 7:30 PM
To:     [EMAIL PROTECTED]
Subject:        parsing errors

Hi,
I got your mailing id in the FAQ. I wanted to join the mailing list group,
but some error occured. So i am seperately sending you the mail.
I am having difficulty in parsing XML document in cases where any element is
having value which contains "&" in it. Actually i am receiving information
from database and with that info i am creating XML document. It goes fine if
no field is having "&", but with this charecter i am not able to parse. Can
I get some help from you as to what should I do.
Thanking in advance
Rakesh Kumar


Reply via email to