Skip to content

Core\Xml

Reads and writes XML documents. parse reads a whole document into a tree of Core\Xml\Node objects. reader returns the nodes of a document one at a time and does not build a tree. writer builds a new document one node at a time, and escapes every text for you.

Members

3 members.

MemberSignature
parseparse(string $document): Core\Xml\Node
readerreader(string|Core\Bytes::Source|Core\Bytes::Chunks $document): Core\Xml\Reader
writerwriter({ indent?: string }): Core\Xml\Writer