PHP 8.4.3 Released!

Dom\HTMLDocument::saveXmlFile

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveXmlFileSerializes the document as an XML file

Beschreibung

public Dom\HTMLDocument::saveXmlFile(string $filename, int $options = 0): int|false

Serializes the document as an XML file.

Parameter-Liste

filename
The path to the file to save to.
options
Additional Options. The LIBXML_NOEMPTYTAG and LIBXML_NOXMLDECL options are supported. Prior to PHP 8.3.0, only the LIBXML_NOEMPTYTAG option is supported.

Rückgabewerte

The number of bytes written on success, or false on failure.

Fehler/Exceptions

  • Throws a ValueError if filename is an empty string or contains any null bytes.

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top