(self, string)
return doc
Parse a document from a string, returning the document node.
Parse a document from a string, returning the document node.
Parse a document from a string returning the document node .
def parseString(self, string):
        """Parse a document from a string, returning the document node."""
        parser = self.getParser()
        try:
            parser.Parse(string, True)
            self._setup_subset(string)
        except ParseEscape:
            pass
        doc = self.document
        self.reset()
        self._parser = None
        return doc
def parseString ( self , string ) : parser = self . getParser ( ) try : parser . Parse ( string , True ) self . _setup_subset ( string ) except ParseEscape : pass doc = self . document self . reset ( ) self . _parser = None return doc