Re: [xml-dev] element census tool?

From
Uche Ogbuji <>
To
David Lee <>
Date
2011-02-02T22:27:23Z
ID
<>
Thread
Re: [xml-dev] element census tool?
That doesn't look like it includes the attributes listing, nor the path to each element, as in the original request.

Heck, 1-liners are easy if you simplify requirements ;)

import sys, amara; doc = amara.parse(sys.argv[1]); print [ e.xml_qname for e in doc.xml_select('//*')]"

Note: above includes the details of actually loading the file.  I suspect you might have to specify a bit more in the