jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes How to parse special charcacters(&) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse special charcacters(&)" Watch "How to parse special charcacters(&)" New topic

How to parse special charcacters(&)

Bhasker Reddy
Ranch Hand

Joined: Jun 13, 2000
Posts: 176
I get xml files with these special characters. My parser is failing for these characters. Is there anyway i can tell my parser to ignore these
<NAME><![CDATA[Unlimited N&W]]></NAME>.
When my parser tries to retrive this values(Unlimited N&W) it fails.

Bhasker Reddy
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Its not clear what parser you are using (SAX/DOM?) but for a DOM parser,
this link provides some info about how to process CDATA sections (scroll to the middle).

- m
I agree. Here's the link: http://aspose.com/file-tools
subject: How to parse special charcacters(&)
It's not a secret anymore!