Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

predifined entity  RSS feed

 
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
Boost this thread!