Re: Character data

Robert Bielik <[email protected]> Mon, 07 Feb 2011 22:10:53 +0100
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Carlos Pereira skrev 2011-02-07 22:32:
>
> so I could see that 45 and 67i belong to the same number. However, this seems a bit ugly... what about XML formats that may include large blocks of numerical data (for example X3D...)?? is there a better solution? what am I missing here?

Just append the character data during parsing, so that at first call the chardata string is:

chData = "1234 45"

then after next char data callback it is:

chData = "1234 4567 891011"

then you process the chData string in your endElement ("foo") handler.

Regards,
/Rob