Re: [xml] Second question about xmlTextReader (python)

On Tue, Aug 05, 2003 at 10:07:24PM +0000, Bjorn Reese wrote:
Nathan Bullock wrote:

When the xmltextreader parses a tag such as <foo/> it only creates a start
element node, it never tells us that the end tag was parsed. Is the only way
to keep track of this type of tags to note the depth that the reader is at?

Use xmlTextReaderIsEmptyElement

  Yep sorry about that, it's Microsoft playing with XML. IMHO the element
node (type = 15) should not really be there, it's not a node but it's the
that API is designed...


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]