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 Android Security Essentials Live Lessons this week in the Android forum!
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
jQuery in Action, 2nd edition
subject: How to parse special charcacters(&)
Similar Threads
Null pointer exception probably due to synchronisation issues; problem in starting activity
runtime encoding probolem
displaying the string before a special character
parsing numeric & special characters