Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem reading ' from XML uisng SAX Parser

843834Jul 30 2007 — edited Jul 31 2007
Hi All,

I have a XML which contains the following element
<DataText>This is simple ' Text</DataText>
I have included & apos ; in the element called DataText.

When parsing the element, am getting only the text that appears before & apos ;

When Not including & apos ; am able to get the full text from this element.

I observed that in the method characters(char buf[], int offset, int len)

Thelen attribute shows the total length from start position to the position where & apos ; starts...

How can i get the whole text which includes even " & apos ; "

Thanks

Note : while posting this request, & apos; is being formatted to ' . thats the reason included space between them
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2007
Added on Jul 30 2007
6 comments
202 views