Skip to content

[Proposal]: Introduce schema support into XML adapter #1865

@stloyd

Description

@stloyd

Describe the Proposal

Right now, the XML adapter doesn't allow passing Schema into the entry factory for every passed row, which can have quite big performance implications when reading larger amounts of data.

Similar to: #1861 & #1863

API Adjustments

Add to the XMLParserExtractor:

    public function withSchema(Schema $schema) : self
    {
        $this->schema = $schema;

        return $this;
    }

So it can be passed further to array_to_rows()

Are you intenting to also work on proposed change?

Yes

Are you interested in sponsoring this change?

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions