ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1147576 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java
Date Sun, 17 Jul 2011 10:40:48 GMT
Author: veithen
Date: Sun Jul 17 10:40:48 2011
New Revision: 1147576

URL: http://svn.apache.org/viewvc?rev=1147576&view=rev
Log:
Use the API defined by AXIOM-353 internally in ElementHelper#importOMElement.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java?rev=1147576&r1=1147575&r2=1147576&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/ElementHelper.java
Sun Jul 17 10:40:48 2011
@@ -177,8 +177,8 @@ public class ElementHelper {
         if (omElement.getOMFactory().getClass().isInstance(omFactory)) {
             return omElement;
         } else {
-            OMElement documentElement = new StAXOMBuilder(omFactory, omElement.getXMLStreamReader())
-                    .getDocumentElement();
+            OMElement documentElement = omFactory.getMetaFactory().createStAXOMBuilder(
+                    omFactory, omElement.getXMLStreamReader()).getDocumentElement();
             documentElement.build();
             return documentElement;
         }



Mime
View raw message