(string, parser=None)
Parse a file into a DOM from a string.
Parse a file into a DOM from a string.
Parse a file into a DOM from a string .
def parseString(string, parser=None):
    """Parse a file into a DOM from a string."""
    if parser is None:
        from xml.dom import expatbuilder
        return expatbuilder.parseString(string)
    else:
        from xml.dom import pulldom
        return _do_pulldom_parse(pulldom.parseString, (string,),
                                 {'parser': parser})
def parseString ( string , parser = None ) : if parser is None : from xml . dom import expatbuilder return expatbuilder . parseString ( string ) else : from xml . dom import pulldom return _do_pulldom_parse ( pulldom . parseString , ( string , ) , { 'parser' : parser } )