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 sa...@apache.org on 2004/04/09 15:31:05 UTC

cvs commit: ws-axis/c/src/soap XercesHandler.cpp

sanjaya     2004/04/09 06:31:05

  Modified:    c/src/soap XercesHandler.cpp
  Log:
  fixed for loop in start element even
  
  Revision  Changes    Path
  1.5       +5 -3      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XercesHandler.cpp	8 Apr 2004 12:47:11 -0000	1.4
  +++ XercesHandler.cpp	9 Apr 2004 13:31:05 -0000	1.5
  @@ -47,14 +47,16 @@
       
       unsigned int len = attrs.getLength();
       unsigned int index;
  +	unsigned int i = 0;
       for (index = 0; index < len*3; index+=3)
       {    
           Nelement->m_pchAttributes[index] = 
  -            XMLString::transcode(attrs.getLocalName(index));
  +            XMLString::transcode(attrs.getLocalName(i));
           Nelement->m_pchAttributes[index+1] = 
  -            XMLString::transcode(attrs.getURI(index));
  +            XMLString::transcode(attrs.getURI(i));
           Nelement->m_pchAttributes[index+2] = 
  -            XMLString::transcode(attrs.getValue(index));
  +            XMLString::transcode(attrs.getValue(i));
  +		i++;
       }
       Nelement->m_pchAttributes[len*3]=NULL;
   }