[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Commented: (XMLBEANS-100) Support of DOM Level 3
From: "Sean O'Callaghan (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2008-04-02 15:37:25
Message-ID: 1115980588.1207150645118.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-100?page=com.atlassian.jira.plugi \
n.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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic