Project

General

Profile

« Previous | Next » 

Revision 1688

xml_dom.py: Added parse_str()

View differences:

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