XML and Python

Mike Brown mike at skew.org
Tue Jan 14 09:15:00 CET 2003


Martin Schmettow wrote:
> Some of the methods for Element-Nodes in xml.dom
> seem to be missing in Ft.Xml.Domlette. For example:
> hasAttribute, setAttribute, getAttribute.
> Is there any documentation, which exactly mentions
> the methods available in Domlette and those not?

Not yet! But you can use Python's introspection capability (good ol' dir),
as demonstrated here:
http://mail.python.org/pipermail/xml-sig/2002-December/008869.html

If you're looking for getElementsByTagName(), see where the thread continues
at
http://mail.python.org/pipermail/xml-sig/2002-December/008871.html

and especially note the simpler solution: XPath...
http://mail.python.org/pipermail/xml-sig/2002-December/008873.html






More information about the Python-list mailing list