axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r210056 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
Date Sun, 10 Jul 2005 23:08:02 GMT
Author: dims
Date: Sun Jul 10 16:08:00 2005
New Revision: 210056

URL: http://svn.apache.org/viewcvs?rev=210056&view=rev
Log:
need to return the OMDocument

Modified:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java?rev=210056&r1=210055&r2=210056&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
(original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
Sun Jul 10 16:08:00 2005
@@ -1,11 +1,11 @@
 package org.apache.axis2.om.xpath;
 
 import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMContainer;
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.om.OMNamespace;
 import org.apache.axis2.om.OMNode;
 import org.apache.axis2.om.OMText;
-import org.apache.axis2.om.OMContainer;
 import org.apache.axis2.om.impl.llom.OMDocument;
 import org.apache.axis2.om.impl.llom.OMNamespaceImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
@@ -20,14 +20,12 @@
 
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLStreamReader;
+import java.io.FileInputStream;
 import java.net.URL;
-import java.util.Iterator;
-import java.util.List;
 import java.util.ArrayList;
 import java.util.HashSet;
-import java.util.Arrays;
-import java.util.Collection;
-import java.io.FileInputStream;
+import java.util.Iterator;
+import java.util.List;
 
 public class DocumentNavigator extends DefaultNavigator {
     /**
@@ -513,7 +511,7 @@
             }
             StAXOMBuilder builder =
                     new StAXOMBuilder(parser);
-            return builder.getDocumentElement();
+            return builder.getDocumentElement().getParent();
         } catch (Exception e) {
             throw new FunctionCallException(e);
         }



Mime
View raw message