Revision 1709
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 |
|
|
210 | 206 |
##### minidom modifications |
211 | 207 |
|
212 | 208 |
minidom._write_data = lambda writer, data: writer.write(escape(data)) |
Also available in: Unified diff
Moved parse_str() from xml_dom.py to xml_parse.py