[XML-SIG] accessing to xml doc element

PLU Michel CNET/DSM/LAN michel.plu@cnet.francetelecom.fr
Wed, 2 Jun 1999 11:06:56 +0200


Is there a python xml code for accessing element of an HTML or XML document
in a way like

myDocument.documentElement.body[0].center[0].table[2].tr[0].td[0].table[1].t
r[0].td[1].font[0].h4[0].pcdata[0]

the idea is to use the dom interface of a document and to define the
__getattr__ (tag)  method of the Node  class in the xml.dom.core module in
order to calls the method getElementByTagName(tag).

Unfortunetly this method is already defined and personally modifying it is
not a clean solution 

	any idea ?

		
		Michel

Ps: Please reply me directly since i did not subscribe to the mailing list