How to convert from org.apache.xmlbeans.xmlobject to org.w3c.dom.Document?

first last <[email protected]>
Newsgroups gmane.text.xml.xmlbeans.user
Message-ID <[email protected]>
Hi all,I'm using XMLBeans to create an XML object which is of type
org.apache.xmlbeans.xmlobject.
But I need to pass this XML content to an API which expects an XML of type -
org.w3c.dom.Document. Does XMLBeans provide a direct way of converting from
xmlobject to dom.Document? I noticed that we can go from XmlObject to
org.w3c.dom Node Object using XmlObject.newDomNode(), but not sure how to
get a dom.Document object from XMLobject. Can someone let me know if this is
possible?

Thanks in advance for your help.

Regards,
Gugle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.