Dom\HTMLDocument::saveXml

Serializes the document as an XML string

&reftitle.description; public ``string``false```Dom\HTMLDocument::saveXml` ``Dom\Node``null```node`&null; `int` `options` 0

Serializes the document as an XML string.

&reftitle.parameters;

`node`

- The node to serialize. If not provided, the entire document is serialized.

`options`

- &dom.parameters.serialize.options;
&reftitle.returnvalues;

The serialized XML document string in the current document encoding, or &false; on failure.

&reftitle.errors;

&dom.errors.compliant.wrong_document;

&reftitle.seealso;

- `Dom\HTMLDocument::saveXmlFile`
- `Dom\XMLDocument::saveHtml`