[Expat-discuss] extracting value other than element andattribute
Mark Williams
Mark.Williams at techop.co.uk
Thu Aug 7 10:16:28 CEST 2008
Hello,
> The problem is really solved. :D
>
> Putting "\0" at the end of the data passed into callback, I
> can take out
> desired element_value. without using strstr. Forgetting to do
> that made me
> take a lot of time to parse a file.
I hope you are not modifying the data passed to your Character
data handler callback (It is const XML_char * !).
Remember these are not null terminated strings as you would normally
expect programming in "C". You need to examine the length parameter
to see how long the string is.
Best Regards,
Mark Williams, Tech OP ltd
More information about the Expat-discuss
mailing list