Re: Expat-discuss Digest, Vol 77, Issue 8

Albrecht Fritzsche <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <Pine.SOL.4.58.0608251208380.19066@twen>

On Fri, 25 Aug 2006 [email protected] wrote:

> Message: 1
> Date: Thu, 24 Aug 2006 16:02:31 +0200
> From: Norman Rosner <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.