[Expat-discuss] Character data
Robert Bielik
robert.bielik at xponaut.se
Mon Feb 7 22:10:53 CET 2011
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
More information about the Expat-discuss
mailing list