This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
wood burning stoves
 
subject: How to parse special charcacters(&)