axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r348739 - /webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp
Date Thu, 24 Nov 2005 14:23:05 GMT
Author: prestonf
Date: Thu Nov 24 06:23:02 2005
New Revision: 348739

URL: http://svn.apache.org/viewcvs?rev=348739&view=rev
Log:
Any tests where failing because parser code was not differentiating properly between a START,
END and START_END tags.

Modified:
    webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp

Modified: webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp?rev=348739&r1=348738&r2=348739&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp (original)
+++ webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp Thu Nov 24 06:23:02 2005
@@ -2720,7 +2720,7 @@
     	{
     	    tagCount--;
     	}
-    	else if (START_ELEMENT == m_pNode->m_type)
+    	else if (START_ELEMENT == m_pNode->m_type && START_END_ELEMENT != m_pNode->m_type2)
     	{
     	    tagCount++;
     	}
@@ -2831,7 +2831,14 @@
         	 }
 	       }
 
+    if (START_END_ELEMENT == node->m_type2)
+	{
+    	xmlStr += "/>";
+	}
+	else
+	{
     	xmlStr += ">";
+	}
     }
     else if (END_ELEMENT == node->m_type)
     {
@@ -2857,7 +2864,14 @@
     	}
 
 	xmlStr += node->m_pchNameOrValue;
-	xmlStr += ">";
+    if (START_END_ELEMENT == node->m_type2)
+	{
+    	xmlStr += "/>";
+	}
+	else
+	{
+    	xmlStr += ">";
+	}
     }
 }
 



Mime
View raw message