parameters: (text, parser=None)
return_statement: return parser.close()
docstring: Parse XML document from string constant.
  
      This function can be used to embed "XML Literals" in Python code.
  
      *text* is a string containing XML data, *parser* is an
      optional parser instance, defaulting to the standard XMLParser.
  
      Returns an Element instance.
docstring_summary: Parse XML document from string constant.
docstring_tokens: Parse XML document from string constant .
function: def XML(text, parser=None):
      """Parse XML document from string constant.
  
      This function can be used to embed "XML Literals" in Python code.
  
      *text* is a string containing XML data, *parser* is an
      optional parser instance, defaulting to the standard XMLParser.
  
      Returns an Element instance.
  
      """
      if not parser:
          parser = XMLParser(target=TreeBuilder())
      parser.feed(text)
      return parser.close()
function_tokens: def XML ( text , parser = None ) : if not parser : parser = XMLParser ( target = TreeBuilder ( ) ) parser . feed ( text ) return parser . close ( )