Hi,

I use the "tree.getpath(element)" to solve a problem, and I need to have a meaningful path.

In the example at http://pastebin.com/1Xjprfui the getpath method behaves exactly as expected when I use it in an XML doc with no namespace or if all elements have a namespace prefix (examples 1 and 3).

But if I use tree.getpath(element) on a document with a default namespace (second example), I got weird getpath results like "/*", "/*/*/*[2]" and so on when I expected meaningful path like "/root", "/root/parent/child[2]".

Is this a bug or a feature ? If a feature, is there some workaround to get meaningful path expressions ?

Thanks in advance for any help.
--
Gilles Lenfant