[ https://issues.apache.org/jira/browse/XMLBEANS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584639#action_12584639 ]
Sean O'Callaghan commented on XMLBEANS-100: ------------------------------------------- XMLBeans does not work with jdk1.6 as calls made to methods within XObj.java return with a runtime exception: For example the following code which worked with jdk1.5 no longer does with 1.6: public class FooTest { public static void main(String[] args) { try { InputStream is1 = FooTest.class.getResourceAsStream("GreetMeDocLiteralReq1.xml"); Document document = org.apache.cxf.helpers.DOMUtils.readXml(is1); XmlObject xml = XmlObject.Factory.parse(document); Node node = xml.getDomNode(); System.out.println("node is " + node.getClass().getName()); //System.out.println(((Document)node).getXmlStandalone()); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(); t.setOutputProperty(OutputKeys.INDENT, "yes"); t.transform(new DOMSource(node), new StreamResult(System.out)); } catch (Exception ex) { ex.printStackTrace(); } } } where GreetMeDocLiteralReq.xml is a SOAP message: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body><ns4:greetMe xmlns:ns4="http://apache.org/hello_world_soap_http/types"> <ns4:requestType>Gil</ns4:requestType> </ns4:greetMe></SOAP-ENV:Body> </SOAP-ENV:Envelope> [java] Caused by: java.lang.RuntimeException: DOM Level 3 Not implemented [java] at org.apache.xmlbeans.impl.store.Xobj$DocumentXobj.getXmlStandalone(Xobj.java:2643) [java] at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373) [java] at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127) [java] at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94) [java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662) [java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708) > Support of DOM Level 3 > ---------------------- > > Key: XMLBEANS-100 > URL: https://issues.apache.org/jira/browse/XMLBEANS-100 > Project: XMLBeans > Issue Type: New Feature > Components: DOM > Affects Versions: Version 2 > Reporter: Walter Dorninger > Assignee: Jacob Danner > Priority: Minor > Fix For: TBD > > > Support of DOM Level 3 would be a powerful feature. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]