I was thinking the same thing because that's what we do in Koha, but I
think Andy is getting back more than 1 XML record per HTTP request so I
don't think that will work.
That said he could use a XML streaming parser and LWP with callbacks and
then pass each individual record to new_from_xml.
I'm glad that I was able to help! I had wondered if you were going to run
into encoding issues, and I had thought about warning you... but I figured
that was a different piece of the puzzle.
So far, I've actually only written to in-memory file handles (my example
above was the first time reading