How to request data from a lazily-created tree structure ?
laurent.ploix at gmail.com
Mon Jun 23 08:56:19 CEST 2008
On Jun 17, 11:54 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> > Do you know if there is suchXPathengine that can be applied to a DOM-
> > like structure ?
> No. But I toyed with the idea to write one :)
> > One way would be to take anXPathengine from an existing XML engine
> > (ElementTree, or any other), and see what APIs it calls... and see if
> > we cannot create a DOM-like structure that has the same API. Duck
> > typing, really...
> Why can't you create a *real* DOM?
I may have found sg: http://sourceforge.net/projects/pdis-xpath/
A XPath 1.0, in pure python, on top of ElementTree. I'll have a look.
More information about the Python-list