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

Reading metadata attributes #26

Open
beedaddy opened this issue Jan 28, 2021 · 2 comments
Open

Reading metadata attributes #26

beedaddy opened this issue Jan 28, 2021 · 2 comments

Comments

@beedaddy
Copy link

Sorry if this is not the right place to ask. I would like to read some attributes like file-as from the creator element:
<dc:creator xmlns:ns0="http://www.idpf.org/2007/opf" ns0:role="aut" ns0:file-as="Deaver, Jeffery">Jeffery Deaver</dc:creator>. Is this somehow possible?

@danigm
Copy link
Owner

danigm commented Jan 28, 2021

Right now the metadata is parsed here and we just get the tag and the text value, the metadata is a HashMap<String, Vec<String>>.

With the current version, the only way to get that information is to parse again the root file xml. Maybe it's interesting to store all attrs information during the root parse or just create a complex struct to store metadata with more than string values.

@beedaddy
Copy link
Author

It would be really helpful. Perhaps you could handle this as a feature request.

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

No branches or pull requests

2 participants