aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse special charcacters(&)" Watch "How to parse special charcacters(&)" New topic
Author

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to parse special charcacters(&)