Do you know if there is such XPath engine 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 an XPath engine 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? Diez -- http://mail.python.org/mailman/listinfo/python-list