i have changed the code a little
char DataIn[] = "<nx-charging:additional-parameter name=\"NX_INTERNATIONALIZED_CLID\" value=\"919427960829\"/><nx-charging:finalStatus>RESPONSE , Not/Applicable , OK</nx-charging:finalStatus></nx-charging
rocess>";
char *str = DataIn;
char *token[500];
while ( (token[i] = strtok ( str, "<" )) )
{
puts(token[i]);
i++;
str = NULL;
}
this is how my output looks like
nx-charging:additional-parameter name="NX_INTERNATIONALIZED_CLID" value="919427960829"/>
nx-charging:finalStatus>RESPONSE , Not/Applicable , OK
/nx-charging:finalStatus>
/nx-chargingrocess>
the highlighted fields are not required by me
also " in the output are not required.
and for this out put
finalStatus>RESPONSE , Not/Applicable , OK
i want it to be like
finalStatus=RESPONSE , Not/Applicable , OK
thanks for replies, waiting for more to come.