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 pr...@apache.org on 2005/11/24 15:23:05 UTC

svn commit: r348739 - /webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp

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 += ">";
+	}
     }
 }