Revision 891
Added by Aaron Marcuse-Kubitza about 13 years ago
lib/xml_dom.py | ||
---|---|---|
221 | 221 |
def __Element_write_opening(self, writer, indent='', addindent='', newl=''): |
222 | 222 |
writer.write(indent+'<'+self.tagName) |
223 | 223 |
for attr_idx in xrange(self.attributes.length): |
224 |
attr = self.attributes.item(attr_idx) |
|
225 |
writer.write(' '+attr.name+'='+escape(attr.value)) |
|
224 |
writer.write(' '+str(self.attributes.item(attr_idx))) |
|
226 | 225 |
writer.write('>'+newl) |
227 | 226 |
minidom.Element.write_opening = __Element_write_opening |
228 | 227 |
|
Also available in: Unified diff
xml_dom.py: minidom.Element.write_opening(): Use new Attr.__str__() method for printing attributes