You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2004/04/05 16:07:19 UTC
cvs commit: ws-axis/c/src/soap XercesHandler.cpp SoapParserXerces.cpp
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;
}