Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Converting XML to MARC without reading a file?

1 view
Skip to first unread message

Karl Billeter

unread,
Apr 22, 2018, 8:45:03 PM4/22/18
to perl...@perl.org
On Thu, Apr 19, 2018 at 12:25:05AM +0000, Andy Kohler wrote:

> Problem: Converting from MARCXML via MARC::File::XML seems to require
> reading the records from a file. I've already got the XML stored in a
> variable, retrieved via LWP::Simple->get().
>
> Do I have to write the XML to a file, then read it in again to convert it?
> Or am I just missing something obvious?

Looking at the module documentation new_from_xml() should work but only for a
single record chunk. I'd probably use that and something like XML::Twig to
split the records.

K
0 new messages