Flow PHP

XMLNodeCursor

Read onlyYes
FinalYes

The walk to every element on a path: the reader stops on each with libxml's internal errors on, so whatever reads the node there reports into failure(), and moves past the node's subtree when resumed.

Methods

__construct()  : mixed
failure()  : RuntimeException
of()  : Generator<int, XMLReader>

Methods

__construct()

public __construct(string $xmlNodePath) : mixed
Parameters
$xmlNodePath : string

slash-separated element names from the root, '' for the root itself

failure()

public failure() : RuntimeException
Return values
RuntimeException

of()

public of(SourceStream $stream, int<1, max> $bufferSize) : Generator<int, XMLReader>
Parameters
$stream : SourceStream
$bufferSize : int<1, max>

bytes read from the stream at a time

Return values
Generator<int, XMLReader>
On this page

Search results