[Expat-discuss] Parsing question from a newbie.
Robert Bielik
robert.bielik at xponaut.se
Thu Mar 31 06:35:36 CEST 2011
Robert Bielik skrev 2011-03-31 06:30:
>> 2) The "right" place to DO that might be in the startElement() and
>> endElement() routines.
>
> In startElement I think, since its the place where you get the element name first.
Also, the best way to do it is to have a stack in which you push the element name in startElement, and
pop the top of the stack in endElement. Then you'll always have the correct context when dealing with
character data.
/Rob
More information about the Expat-discuss
mailing list