I am getting object of type org.w3c.dom.Document from a source (basically a parsed xml document – java object). I want to use this xml document object to create java objects using JAXB. How can I do that?
I am getting object of type org.w3c.dom.Document from a source (basically a parsed xml
Share
You can unmarshal directly from DOM objects, this includes a
org.w3c.dom.Document:If you need to specify the type of object you are unmarshalling, then you can wrap the DOM node in a
javax.xml.transform.dom.DOMSourceand use the following API: