[Expat-discuss] Expat-discuss Digest, Vol 77, Issue 8

Albrecht Fritzsche ali at mental.com
Fri Aug 25 12:17:28 CEST 2006



On Fri, 25 Aug 2006 expat-discuss-request at libexpat.org wrote:

> Message: 1
> Date: Thu, 24 Aug 2006 16:02:31 +0200
> From: Norman Rosner <jeckyll at mac.com>
> Subject: [Expat-discuss] a few newbie queistions
>
> Second Question:
>
> How can i get the data that's in the elements. I tried the
> XML_SetCharacterDataHandler but it didn't work the way i intended it
> to work ;)

Maybe the same mistake? Ie you'd expected a string but do
get a char pointer?

Watch out though what the documentation tells you

  "The string your handler receives is NOT nul-terminated.
   You have to use the length argument to deal with the end
   of the string. A single block of contiguous text free of
   markup may still result in a sequence of calls to this
   handler."

Ie there might be several calls to CharacterDataHandler
before you have gathered all data.
Ali


More information about the Expat-discuss mailing list