Flow PHP

XMLReaderExtractor implements BatchableExtractor, Extractor, FileExtractor, LimitPushDown, MetadataColumnsExtractor, RewindableExtractor uses Batches, PushesLimit, FileReading

FinalYes

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

Interfaces

BatchableExtractor
Extractor
FileExtractor
LimitPushDown
MetadataColumnsExtractor
RewindableExtractor

Methods

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

Methods

__construct()

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

public __construct(Path $path[, string $xmlNodePath = '' ][, Filesystem $filesystem = new NativeLocalFilesystem() ]) : 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 = ''
$filesystem : Filesystem = new NativeLocalFilesystem()

extract()

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

withSchema()

public withSchema(Schema $schema) : static
Parameters
$schema : Schema
Return values
static
On this page

Search results