in reply to XML parsing

As you can read in XML::Simple, XMLin expects its first argument to be the xml (as a string, filename, or filehandle), the remaining arguments should be option name => value pairs.

Read the output of your command into a single string instead of an array and feed this string to XMLin.

Update: Missed the last sentence... The XML must of course be an XML - remove any leading non-xml header.