Flow PHP

XMLReaderExtractor implements Extractor, FileExtractor, LimitableExtractor uses Limitable, PathFiltering

FinalYes

Use XMLParserExtractor instead, XMLReaderExtractor can't properly handle reading remote files since it requires a local file.

Interfaces

Extractor
FileExtractor
LimitableExtractor

Methods

__construct()  : mixed
In order to iterate only over <element> nodes us root/elements/element.
extract()  : Generator<Signal|null, void>
source()  : Path

Methods

__construct()

In order to iterate only over <element> nodes us root/elements/element.

public __construct(Path $path[, string $xmlNodePath = '' ]) : mixed

$xmlNodePath does not support attributes and it's not xpath, it is just a sequence of node names separated with slash.

Parameters
$path : Path
$xmlNodePath : string = ''

extract()

public extract(FlowContext $context) : Generator<Signal|null, void>
Parameters
$context : FlowContext
Return values
Generator<Signal|null, void>
On this page

Search results