[Expat-discuss] Question about "piece-wise" parsing

Karl Waclawek karl at waclawek.net
Fri Feb 7 15:43:17 EST 2003


> I'm faily new to xml and expat. I think my question is better illustrated with an example. Suppose
I have this XML stream:
>
> <element1>
> <elem2 attrib1="sample" attrib2="another sample"/>
> <elem3 attrib1="hello" attrib2="world"/>
> </element1>
>
> Can expat parse this stream if it was "cut-off" or "broken" at any point? Can I call XML_Parse
with this data,
>
> <element1>
> <elem2 attrib1="sample" attrib2="anot
>
> then call it a second time with the rest of the stream,
>
> her sample"/>
> <elem3 attrib1="hello" attrib2="world"/>
> </element1>
>
> Can expat handle this directly?

Yes.

Karl




More information about the Expat-discuss mailing list