[XML-SIG] remove elements by tagname

Alexandre Alexandre.Fayolle at logilab.fr
Wed Nov 10 09:06:45 CET 2004

On Tue, Nov 09, 2004 at 10:52:36AM +0100, Matthias Teege wrote:
> I can get all elements by name with
> doc.getElementsByTagName("table:table-row") for example but how do I
> remove all elements by tag name?

You'll have to manually removeChild each node you get from
getElementsByTagName from its parentNode.  

Alexandre Fayolle                              LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/xml-sig/attachments/20041110/0e0bf6f3/attachment.pgp

More information about the XML-SIG mailing list