XML_Document.from_text
XML_Document.from_textxml_string
Group: Conversions
Documentation
Read an XML document from a string. If there is a parsing error, XML_Error.Parse_Error
is thrown.
Arguments
xml_string
: The string to read the XML document from.
Examples
Read an XML document from an string.
xml_string = "<foo></foo>"
doc = XML_Document.from_text xml_string