XMLNodes
Read onlyYes
FinalYes
libxml builds each node's DOM in C, so no element, attribute or text of the document passes through PHP.
Methods
- __construct() : mixed
- of() : Generator<int, DOMDocument>
- Each element on the path as a document of its own, declaring every namespace it uses.
Methods
__construct()
public
__construct(string $xmlNodePath) : mixed
Parameters
- $xmlNodePath : string
-
slash-separated element names from the root, '' for the root itself
of()
Each element on the path as a document of its own, declaring every namespace it uses.
public
of(SourceStream $stream, int<1, max> $bufferSize) : Generator<int, DOMDocument>
Parameters
- $stream : SourceStream
- $bufferSize : int<1, max>
-
bytes read from the stream at a time