aspose file tools*
The moose likes XML and Related Technologies and the fly likes org.w3c.dom.Document - output without escaping markup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "org.w3c.dom.Document - output without escaping markup" Watch "org.w3c.dom.Document - output without escaping markup" New topic
Author

org.w3c.dom.Document - output without escaping markup

Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
Hi

I have HTML markup in a text node within an org.w3c.dom.Document and I need to write the content of that text node out to a file without it being escaped but every time I tranform it the html markup is escaped

Please can someone tell me how to do this?


ph34r my 133t j4v4 h4><0r1ng sk177z
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
You are going to have to pre-treat the text so that when the escaping occurs it ends up back the way you want.
javax.util.regex.Pattern is your friend in this.
I did a whole bunch of this sort of thing but all I can remember is a lot of very very tedious testing.
Bill
Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
Hi Bill

Thankyou for your advice.

I will check out the regex stuff. I appreciate you taking the time to answer.
 
Consider Paul's rocket mass heater.
 
subject: org.w3c.dom.Document - output without escaping markup