[XML-SIG] newbie question

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu, 17 May 2001 23:36:38 +0200

> From this xml I would like to pull out the id attributes and the
> values from the <fld> elements. I can do this in jython with jdom
> easily enough, but I need to use python for my current application

In PyXML, it works mostly the same way. The only different thing is
how to obtain a DOM Document; you use xml.dom.ext.reader.Sax2.FromXml*
for this. Once you have a DOM tree, you proceed just as with jython,
i.e.  using getElementsByTagName, etc.

You probably need to be aware of the Python DOM mapping, see