Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alternative XML parsers besides SimpleXMLElement #44

Open
caseyamcl opened this issue Jul 29, 2017 · 5 comments
Open

Support alternative XML parsers besides SimpleXMLElement #44

caseyamcl opened this issue Jul 29, 2017 · 5 comments
Assignees
Milestone

Comments

@caseyamcl
Copy link
Owner

There are other ways of parsing XML responses from service providers. Make the response item handler optional (use raw output), or allow specifying a callback / handler interface to handle each record.

@caseyamcl caseyamcl added this to the Version 3.0 milestone Jul 29, 2017
@caseyamcl caseyamcl modified the milestones: Version 3.0, Version 4.0 Oct 15, 2018
@caseyamcl
Copy link
Owner Author

Since we are going to model the PHP OAI-PMH responses in v4, we'll push this to v4.

@rudolfbyker
Copy link
Contributor

Would be great to have an iterator returning XML strings instead of SimpleXMLElements.

@caseyamcl caseyamcl self-assigned this Nov 20, 2019
@mr-infinity
Copy link

I have also a similair question. We are importing an RDF formatted and the $xml is not returning the full metadata. How can we solve this problem?

@tacman
Copy link
Contributor

tacman commented Feb 8, 2023

FWIW, I've found the sabre xml parser to be easy to work with: https://sabre.io/xml/

@jonasraoni
Copy link

Just sharing one problem that I had, which is somehow related to this issue, at this point:

$this->currItem = clone $item;

A single node is being cloned and retrieved, but the whole XML context is kept alive/carried on. Therefore, a generic XPath query such as //dc:date will bring nodes from all records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants