Skip to content

Extract table elements even if they are not inside the <body> tag. - #172

Open
hdabaghyan wants to merge 1 commit into
titipata:masterfrom
deeporiginbio:master
Open

Extract table elements even if they are not inside the <body> tag.#172
hdabaghyan wants to merge 1 commit into
titipata:masterfrom
deeporiginbio:master

Conversation

@hdabaghyan

Copy link
Copy Markdown

Issue: #171

@Michael-E-Rose

Copy link
Copy Markdown
Collaborator

Thanks a million for this!

May there be any side effects of this change? Like, what is a table outside the body? Is that common or is that rather a bug in PubMed?

@hdabaghyan

hdabaghyan commented Oct 1, 2025

Copy link
Copy Markdown
Author

May there be any side effects of this change? Like, what is a table outside the body? Is that common or is that rather a bug in PubMed?

Here is the structure of the nxml file, where I encountered the issue.
image

And documentation here suggests that article could be divided to different blocks. One of which is <float-groups>, which can contain tables.

I am not very familiar with this format, but I guess it is a valid use case.

Side effect of this change could be, that parser will collect a table that is not in an expected tag. Alternative fix could be to find all the tags that are supposed to contain tables, and write xpath for all such cases.
But I would rather collect any table information, regardless where it is.(though, this is my perspective)

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.

2 participants