Python non validating xml parser

I think this is a good exercise for a parser since: In any case, it was at hand and I didn't have to invent some other kind of made-up application.

While some of them have a validating mode, all the parsers were run as non-validating parsers.I described this program in my September article on this site.It produces a top-down statistical report on the elements in an XML document: the number of occurrences; a breakdown of the number of children, parents, and attributes; and character count.In the case of and big.xml, the contents of the root element were just repeated, 8 and 32 times respectively.Of course, this would make them invalid even without an element model since we've repeated ID attributes.

Leave a Reply