HIP XML Parser (v0.01)
This is some code that I've been meaning to make available for public consumption for weeks, but we've been up to our necks with our RFID tender at Huddersfield recently.
The basic idea is to convert the XML output of HIP 2 and HIP 3 into a Perl data structure, which you can then use to repurpose your bib data and searches for other uses (e.g. to provide an OpenSearch interface).
The first chunk of code I'm making available provides a function (parseBib) that will convert the XML from a full bib page into a data structure. Given the v0.01, you should treat this as alpha code at best!
http://www.daveyp.com/blog/stuff/xmlparser/bib.pl
The above Perl script also contains some code to fetch the XML (using LWP) and will also dump (using Data::Dumper) the resulting Perl data structure to an output text file (dump_output.txt). I've also uploaded the code as a CGI file that you can run to display the Data::Dumper output - e.g.:
Building an object-oriented database system : the story of O2 /
Just to get you started, here's some further info…
posted in Horizon/HIP | 0 Comments
