Standard.BaseDataXMLouter_xmlOn this pageXML_Document.outer_xml outer_xml Documentation Gets the raw XML of the document. Examples Get the outer XML of the document. XML_Document.from_text '<foo>hello</foo>' . outer_xml # => '<foo>hello</foo>'