Re: Parsing question from a newbie.
Robert Bielik <[email protected]> Thu, 31 Mar 2011 06:35:36 +0200
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
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