Revision 1688
Added by Aaron Marcuse-Kubitza over 12 years ago
xml_dom.py | ||
---|---|---|
203 | 203 |
toprettyxml_config = prettyxml_config.copy() |
204 | 204 |
util.rename_key(toprettyxml_config, 'addindent', 'indent') |
205 | 205 |
|
206 |
##### Parsing XML |
|
207 |
|
|
208 |
def parse_str(str_): return minidom.parseString(str_).documentElement |
|
209 |
|
|
206 | 210 |
##### minidom modifications |
207 | 211 |
|
208 | 212 |
minidom._write_data = lambda writer, data: writer.write(escape(data)) |
Also available in: Unified diff
xml_dom.py: Added parse_str()