core :: Text :: to_xml
Returns an XMLDocument if successful, or an XMLError if not
XMLDocument
XMLError
# Tries to parse the current string to XML # # Returns an `XMLDocument` if successful, or an `XMLError` if not fun to_xml: XMLEntity do return (new XMLProcessor(self.to_s)).parse_document