This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to parse special charcacters(&)
 
Similar Threads
displaying the string before a special character
parsing numeric & special characters
runtime encoding probolem
validation
Null pointer exception probably due to synchronisation issues; problem in starting activity