XML Tree Discovery (script, tool, __?)

Fredrik Lundh fredrik at pythonware.com
Tue Oct 25 04:30:18 EDT 2005


eric.pederson at gmail.com wrote:

> The output I was contemplating was a DOM "DNA" - that is the DOM
> without the instances of the elements or their data, a bare tree, a
> prototype tree based on what is in the document (rather than what is
> legal to include in the document).
>
> Just enough data that for an arbitrary element I would know:
>
> 1) whether the element was in a document
> 2) where to find it (the chain of parents)

how to you identify the elements ?  do they have unique tags, unique identifiers,
or some other "globally unique" identifier (attributes or contents) ?

</F> 






More information about the Python-list mailing list