Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to parse special charcacters(&)

 
Bhasker Reddy
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic