This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Pubmed Xml To Other Format, Such As Enw

Hi,guys

I want to convert PubMed xml to other format, For example:

  • endnote enw file
  • RIS format
  • BibTex Format

Are there Projects in github that convert PubMed xml file to other format?

I would appreciate if could help me.

thanks


PS

PubMed xml: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=22805184&rettype=xml

Endnote enw:

%0 Journal Article

%A Hummer DL

%A Peckham EM

%T Estradiol acts during a post-pubertal sensitive period to shorten free-running circadian period in male Octodon degus

%J The European journal of neuroscience

.........

pubmed

Your URL is not an article record but a journal

3 answers

The idea is to use a XSLT styleheet to transform the XML/Pubmed:

Something like (Biostar is still broken for visualizing the XML, click on "revisions" below to see the real stylesheet):

Result:

$ xsltproc --novalid input.xsl "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=22805184&rettype=xml"

TY  - JOUR
AU  - Hummer DL
AU  - Peckham EM
AU  - Lee TM
TI  - Estradiol acts during a post-pubertal sensitive period to shorten free-running circadian period in male Octodon degus.

Have you tried looking a this post: http://www.biostars.org/post/show/14051/how-to-generate-a-bibtex-file-from-pmids

Apart from that, the example you provide is a bit odd: the Pubmed XML and Endnote format you provide don't refer to the same paper.

thanks for your advice, I have corrected the enw file. :smile:

There are repositories other than Github ;)

and at one of them, Sourceforge, you will find bibutils. It's a mature software project with tools to interconvert between many bibliographic formats, including Pubmed XML.

Log in to answer this question.