confused with xml and minidom
guy at NOSPAM.r-e-d.co.nz
Thu Mar 25 02:21:40 CET 2004
I've got an xhtml file which contains a number of html tables.
I want to parse these tables and based on values in the TD cells of the
body of the table delete the row and replace it with additional rows.
Then write the xhtml file to a new file.
if I get the table by:
xmldoc = minidom.parse('templates/input.xhtml')
table = xmldoc.getElementsByTagName('table')
how do I then get the first row of with the parameters. Delete this row
and insert the new rows?
table.childnode('tbody').getElementsByTagname('tr') doesn't work.
Any help or examples of what I'm trying to do appreciated.
More information about the Python-list