You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/07/11 01:08:02 UTC

svn commit: r210056 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java

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);
         }