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

handle-generic-xml roottag option does not work with namespace-prefix #544

Open
TobiasNx opened this issue Jun 24, 2024 · 1 comment
Open
Assignees

Comments

@dr0i
Copy link
Member

dr0i commented Aug 26, 2024

I think it works as intended, as the recordtagname is matched against the "localName", i.e. the field names bare a namespace. See
https://github.com/metafacture/metafacture-core/blob/master/metafacture-xml/src/main/java/org/metafacture/xml/GenericXmlHandler.java#L177 .
So mets:mets doesn't exists , as it expects "$anyNamespace:mets:mets (thus don't yield a result (your first example)) while your second example ("mets") identifies <$anyNamespace:mets>...</$whatever.mets> as a record.

@dr0i dr0i added this to Metafacture Aug 26, 2024
@dr0i dr0i moved this to Review in Metafacture Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

2 participants