[XML-SIG] TreeWalker: NextNode

Martin v. Löwis martin@v.loewis.de
20 Dec 2002 10:06:21 +0100


Jeremy Kloth <jeremy.kloth@fourthought.com> writes:

> A thing to note, the official way of creating a TreeWalker is to use the
> createTreeWalker method of the Document object.  The only DOM
> implementation in PyXML that offers this method is 4DOM.  

This isn't strictly true: If you use
xml.dom.minitraversal.getDOMImplementation(), you will get an
implementation whose documents also support createTreeWalker.

> And this is why the code is written the way it is, it was designed
> to only work with 4DOM.

I think I did a little testing with minitraversal, but there be
dragons.

Regards,
Martin