Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

predifined entity

 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an entity in my XML document:

After I used Xercers DOM parser to parse the document and write the document out, that enity was resolved to some speccial chracter. How can I keep it un-touched in my output document?
Thanks in Advance ...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling setExpandEntityReferences(false) on your DocumentBuilderFactory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic