search for: attrs_to_dict

Displaying 1 result from an estimated 1 matches for "attrs_to_dict".

2010 Oct 08
7
[PATCH] Replace pyxml/xmlproc-based XML validator with lxml based one.
...for child in dom.childNodes: - if child.nodeType == child.TEXT_NODE: - data = child.nodeValue - app.handle_data(data, 0, len(data)) - else: - app.handle_start_tag( - child.nodeName, - self.attrs_to_dict(child.attributes)) - self.dom2sax(child, app) - app.handle_end_tag(child.nodeName) - - def attrs_to_dict(self, attrs): - return dict(attrs.items()) - # # Checks which cannot be done with dtd # ___________________________________________...