axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r210103 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
Date Mon, 11 Jul 2005 11:59:05 GMT
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;
     }



Mime
View raw message