in reply to source XML as URL in command line

Switch to XML::LibXML instead. Then it'll just work (though parsefile() becomes parse_file()).