BibTeX, biblatex and biberConvert BibTeX to XML ?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
samax
Posts: 3
Joined: Thu Feb 10, 2011 11:39 am

Convert BibTeX to XML ?

Post by samax »

Hello,
I need to convert BibTeX format to XML format, in order to parse it in PHP and insert it in a MySQL database.

I found this project, with which I've found a BibTeX-to-BibTeXML converter (written in python), but it breaks BibTeX special caracters (see here, column "in text") by removing curly brackets...

Does someone has another solution to do this ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Convert BibTeX to XML ?

Post by frabjous »

I've never needed to do this, but there are several tools out there to try.

bib2ml "BibTeX to HTML/SQL/XML translator."

Bibutils has a bib2xml component

bib2xhtml (XHTML of course is a kind of XML -- I assume you don't need any specific kind?)

Some BibTeX bibliography managers like JabRef have various export options, including XML-based ones.

I'd guess there are others out there too. Searching at sourceforge makes it look like there also some things in development for using .bib files directly with MySQL. Here's one example.

There are also many bib2html converters out there, but I don't know whether or not their HTML output is close enough to XML to count (or is more SGML-esque, etc.) I'll list 'em if you need them.

Again, I have no first hand experience with any of these, so I cannot recommend one. Maybe someone else can.
samax
Posts: 3
Joined: Thu Feb 10, 2011 11:39 am

Re: Convert BibTeX to XML ?

Post by samax »

Thank you for your answer, I think it will really help.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Convert BibTeX to XML ?

Post by frabjous »

If you don't mind, if you find a converter that works well, come back and let us know which one it was, so we know for future reference.
Post Reply