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

XML Parsing - Ignore New line character

 
nomad shankar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
when I parse an XML using Dom parser , I want to igonre new line characters present in it ..can any one help me
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML parsers don't do content filtering. That's something you would have to do after the parsing is finished. If you were using a SAX or StAX parser instead of DOM, this kind of thing would be easier to implement because you have more control over the parsing process.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic