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 13:59:05 UTC

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

Author: dims
Date: Mon Jul 11 04:59:05 2005
New Revision: 210103

URL: http://svn.apache.org/viewcvs?rev=210103&view=rev
Log:
fix parent for a namespace node.


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=210103&r1=210102&r2=210103&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 Mon Jul 11 04:59:05 2005
@@ -417,6 +417,8 @@
     public Iterator getParentAxisIterator(Object contextNode) throws UnsupportedAxisException {
         if (contextNode instanceof OMNode) {
             return new SingleObjectIterator(((OMNode) contextNode).getParent());
+        }  else if (contextNode instanceof OMNamespaceEx) {
+            return new SingleObjectIterator(((OMNamespaceEx) contextNode).getParent());
         }
         return JaxenConstants.EMPTY_ITERATOR;
     }