This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Disabling XML escaping. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Disabling XML escaping." Watch "Disabling XML escaping." New topic
Author

Disabling XML escaping.

Harvinder Kotli
Greenhorn

Joined: Dec 26, 2008
Posts: 5
How can I disable XML escaping for object of type org.w3c.dom.Document?
e.g: & symbol should not be escaped to &
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Moving to our XML forum.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

The question doesn't make sense. The data in the DOM is in an internal form, where the concept of "escaping" doesn't apply. When you convert that internal form to an XML document (e.g. a text file), then you might want to not escape certain data. That conversion is called "serializing". So you are asking a question about the serializer that you will choose to use, whatever it is.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Disabling XML escaping.
 
Similar Threads
Avoiding XML escaped values (i.e. &gt)
Xerces Sax not parsing a Unicode char
jDom & EscapeStrategy for &
Question about extensions & extension points for Eclipse plugins
JDOM api and dealing with XML 1.0 non-compliant chars