Skip to content

Enables the parsing of elements defined in another namespace in Person constructs #91

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danlyng
Copy link

@danlyng danlyng commented Mar 28, 2025

According to the Atom 1.0 spec, foreign markup may be processed as children of atom:entry, atom:feed, or a Person construct. atom-syndication processes extensions in entry and feed but ignores foreign markup in Person elements.

This PR extends the current handling of extensions to Person. I've tried to keep the API consistent, but please let me know if you'd like changes.

Use case: I am parsing arXiv atom entries, which include an affiliation element like this:

<author>
   <name>G. G. Kacprzak</name>
   <arxiv:affiliation xmlns:arxiv="http://arxiv.org/schemas/atom">NMSU</arxiv:affiliation>
</author>

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

Successfully merging this pull request may close these issues.

1 participant