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

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

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