Standard.BaseDataXMLouter_xmlOn this pageXML_Element.outer_xml outer_xml Documentation Gets the raw XML of the element (including tag, attributes and contents). Examples Get the outer XML of an element. XML_Document.from_text '<foo>hello</foo>' . root_element . outer_xml # => '<foo>hello</foo>'