Here is the code that works for me:
StAXOMBuilder sab = new StAXOMBuilder("someXmlFile.xml");
OMElement dataEl = sab.getDocument().getOMDocumentElement();Simon pmarchwiak wrote:
I have an XML file whose root element I would like to add as a child to an OMElement I have created. Is there a way to create an OMElement from an XML file?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
