xml.dom.minidom -> Xpath ?

Alexandre ac007 at bluewin.ch
Fri Dec 5 09:07:27 EST 2003


"Alan Kennedy" <alanmk at hotmail.com> > Well, you could
>
> 1. Navigate over your tree deleting whitespace nodes, before doing
> your processing.
> 2. Write your own nav function which skips whitespace text nodes (as
> you have done above).
> 3. Use Xpath to find nodes in trees.

Alan, thanks a lot for your answer.
It just raises another question :)
Using Xpath sounds realy cool but... can i do that with a DOM object ?
(haven't found any reference to Xpath in DOM or minidom Python's doc?!)

Alexandre






More information about the Python-list mailing list