my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes Disabling XML escaping. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Disabling XML escaping." Watch "Disabling XML escaping." New topic

Disabling XML escaping.

Harvinder Kotli

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

Joined: Oct 27, 2005
Posts: 19654

Moving to our XML forum.

How To Ask Questions How To Answer Questions
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Disabling XML escaping.
Similar Threads
Avoiding XML escaped values (i.e. &gt)
JDOM api and dealing with XML 1.0 non-compliant chars
Question about extensions & extension points for Eclipse plugins
jDom & EscapeStrategy for &
Xerces Sax not parsing a Unicode char