DR_GIGGULS
New Member
I have a \[code\]javax.xml.transform.sax.SAXSource\[/code\] and I would like to get a \[code\]org.w3c.dom.Document\[/code\] object. I have already googled around for hours but I got frustrated.Besides, the \[code\]InputSource\[/code\] returned by \[code\]SAXSource#getInputSource()\[/code\] is null and therefore I cannot use it to build the \[code\]org.w3c.dom.Document\[/code\].By the way, what I'm trying to achieve is to remove some xml elements from the xml contained in the SAXSource.Thank you for your help!Just some pieces of info about my environment: the SAXSource is returned to me by the \[code\]invoke\[/code\] method of the following javax.xml.ws dispatcher:\[code\]Service service = Service.create(serviceName); //...javax.xml.ws.Dispatch<Source> dispatcher = service.createDispatch(portName, Source.class, Service.Mode.MESSAGE);\[/code\]