[XML-SIG] Accessing DOM nodes in Python

Andrew Kuchling akuchlin@mems-exchange.org
Wed, 4 Oct 2000 16:11:38 -0400


On Wed, Oct 04, 2000 at 04:04:39PM -0400, Thomas Gagne wrote:
>anything when I try "print dh".  I've tried printing dh.parentNode and
>dh.get_parentNode() without success.  I think if someone could just point me
>in the right direction I'd be zooming right along.

dh is a SAX document handler, not a DOM tree, so I wouldn't expect
get_parentNode() to work.  Instead say "doc = dh.document"; doc is
then a DOM tree, so you can call doc.getElementsByTagName() or
whatever.

--amk