[Expat-discuss] extracting value other than element andattribute
yuki latt
yuki.latt at gmail.com
Fri Aug 8 03:07:32 CEST 2008
Hello,
Thank you for your reminding. I meant that I put "\0" to the
temp_string copied from constant xml_data according to the len parameter. :)
cheers,
yuki
On Thu, Aug 7, 2008 at 5:16 PM, Mark Williams <Mark.Williams at techop.co.uk>wrote:
> 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
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>
More information about the Expat-discuss
mailing list