This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
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: 19541
    
  16

Moving to our XML forum.


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

Joined: Oct 14, 2005
Posts: 18121
    
    8

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://aspose.com/file-tools
 
subject: Disabling XML escaping.
 
Similar Threads
JDOM api and dealing with XML 1.0 non-compliant chars
Xerces Sax not parsing a Unicode char
jDom & EscapeStrategy for &
Avoiding XML escaped values (i.e. &gt)
Question about extensions & extension points for Eclipse plugins