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

Parsing journal details from Ovid xml fuses entries into one string - any way to control individual tags? #339

Open
mjafin opened this issue Nov 26, 2023 · 0 comments

Comments

@mjafin
Copy link

mjafin commented Nov 26, 2023

Hi there,
I love xmltodict, thank you for making it available. I'm hitting a minor issue parsing journal details from a database called Ovid. The xml looks like this:

<D type="c">
European Journal of Medicinal Chemistry
<T>. </T>
262
<T>:</T>
115860
<T>, </T>
2023 Dec 15
<T>
.
<BR/>
</T>
</D>

The output looks like:

{'@type': 'c', 'T': ['.', ':', ',', {'BR': None, '#text': '.'}], '#text': 'European Journal of Medicinal Chemistry2621158602023 Dec 15'}

From the #text field it becomes very difficult to separate what the volume, page etc. are as all the text has been fused. Is there any way to control the behaviour when there are the <T> tags?

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

1 participant