axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: ws-axis/c/src/soap XercesHandler.cpp SoapParserXerces.cpp
Date Mon, 05 Apr 2004 14:07:19 GMT
sanjaya     2004/04/05 07:07:19

  Modified:    c/src/soap XercesHandler.cpp SoapParserXerces.cpp
  Log:
  fixed broken xerces parsing
  
  Revision  Changes    Path
  1.3       +5 -5      ws-axis/c/src/soap/XercesHandler.cpp
  
  Index: XercesHandler.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/XercesHandler.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XercesHandler.cpp	1 Apr 2004 13:56:42 -0000	1.2
  +++ XercesHandler.cpp	5 Apr 2004 14:07:19 -0000	1.3
  @@ -45,12 +45,12 @@
   	Nelement->m_pchNamespace = XMLString::transcode(uri);
       
   	unsigned int len = attrs.getLength();
  -    for (unsigned int index = 0, int nextattrindex =-1 ; index < len; index++)
  +	unsigned int index;
  +    for (index = 0; index < len*3; index+=3)
       {	
  -		Nelement->m_pchAttributes[index+1] = XMLString::transcode(attrs.getLocalName(index));
  -		Nelement->m_pchAttributes[index+2] = XMLString::transcode(attrs.getURI(index));
  -		Nelement->m_pchAttributes[index+3] = XMLString::transcode(attrs.getValue(index));
  -		nextattrindex += 3;
  +		Nelement->m_pchAttributes[index] = XMLString::transcode(attrs.getLocalName(index));
  +		Nelement->m_pchAttributes[index+1] = XMLString::transcode(attrs.getURI(index));
  +		Nelement->m_pchAttributes[index+2] = XMLString::transcode(attrs.getValue(index));
   	}
   	Nelement->m_pchAttributes[len*3]=NULL;
   }
  
  
  
  1.3       +5 -0      ws-axis/c/src/soap/SoapParserXerces.cpp
  
  Index: SoapParserXerces.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapParserXerces.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SoapParserXerces.cpp	1 Apr 2004 13:56:42 -0000	1.2
  +++ SoapParserXerces.cpp	5 Apr 2004 14:07:19 -0000	1.3
  @@ -52,6 +52,11 @@
   
   int SoapParserXerces::Init()
   {
  +	if (firstParsed)
  +	{
  +		m_pParser->parseReset(token);
  +		firstParsed = false;
  +	}
   	return 0;
   }
   
  
  
  

Mime
View raw message