(PHP 8 >= 8.4.0)
Dom\HTMLDocument::saveXml — Serializes the document as an XML string
Serializes the document as an XML string.
nodeoptionsLIBXML_NOEMPTYTAG und
LIBXML_NOXMLDECL werden unterstützt.
Vor PHP 8.3.0 wird nur die Option LIBXML_NOEMPTYTAG
unterstützt.
The serialized XML document string in the current
document encoding, or false on failure.
node von einem anderen Dokument stammt, wird eine
Dom\DOMException mit dem Code
Dom\WRONG_DOCUMENT_ERR ausgelöst.