How to parse & update org.w3c.dom.Document
843834Dec 13 2006 — edited Dec 13 2006Hi,
I have a org.w3c.dom.Document "w3Doc" object which is converted to org.jdom.Document object using DOMBuilder().build(w3Doc) method.
Now the problem which I'm facing is that this org.w3c.dom.Document object contains an illegal xml character & when DOMBuilder().build() method tries to create JDOM doc/tree from org.w3c.dom.Document it raises IllegalDataException & the application errors up.
Now, I want to parse org.w3c.dom.Document "w3Doc" object & check for illegal xml character in the w3Doc & remove this character.
Can anyone help me out in finding which parser should I use to read w3Doc & update the doc(by removing the illegal data).
Thanks in advance,