axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r111968 - /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java
Date Wed, 15 Dec 2004 13:46:06 GMT
Author: ajith
Date: Wed Dec 15 05:46:03 2004
New Revision: 111968

URL: http://svn.apache.org/viewcvs?view=rev&rev=111968
Log:
fixed a minor bug
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java?view=diff&rev=111968&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java&r1=111967&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java&r2=111968
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMStAXWrapper.java
Wed Dec 15 05:46:03 2004
@@ -1,6 +1,5 @@
 package org.apache.axis.impl.llom;
 
-import org.apache.axis.impl.llom.OMNavigator;
 import org.apache.axis.impl.llom.exception.OMStreamingException;
 import org.apache.axis.om.*;
 
@@ -291,7 +290,8 @@
         String returnString = null;
         if (isStartElement() || isEndElement() || currentEvent == NAMESPACE) {
             if (navigable) {
-                //Nothing to do here! How to get the namespacace references
+                OMNamespace ns = (OMNamespace)getItemFromIterator(((OMElement)lastNode).getAllDeclaredNamespaces(),i);
+                returnString = ns==null?null:ns.getName();
             } else {
                 returnString = parser.getNamespaceURI(i);
             }
@@ -306,7 +306,8 @@
         String returnString = null;
         if (isStartElement() || isEndElement() || currentEvent == NAMESPACE) {
             if (navigable) {
-                //Nothing to do here! How to get the namespacace references
+                OMNamespace ns = (OMNamespace)getItemFromIterator(((OMElement)lastNode).getAllDeclaredNamespaces(),i);
+                returnString = ns==null?null:ns.getPrefix();
             } else {
                 returnString = parser.getNamespacePrefix(i);
             }
@@ -321,7 +322,7 @@
         int returnCount = 0;
         if (isStartElement() || isEndElement() || currentEvent == NAMESPACE) {
             if (navigable) {
-                //Nothing to do here! How to get the namespacace references
+               returnCount = getCount(((OMElement)lastNode).getAllDeclaredNamespaces());
             } else {
                 returnCount = parser.getNamespaceCount();
             }

Mime
View raw message