Re: Converting XML to MARC without reading a file?

2018-04-22 Thread David Cook
The downside of that is that you would be parsing your XML twice though. Once with XML::Twig and once with MARC::File::XML. That said, if you have a huge result set, it would probably be better (or even necessary) to use XML::Twig::parseurl() or roll your own using LWP with callbacks and a pull p

Re: Converting XML to MARC without reading a file?

2018-04-22 Thread Karl Billeter
On Thu, Apr 19, 2018 at 12:25:05AM +, 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, th