in reply to XML::Parser question.

The error
syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/XML/Parser.pm line 185
Looks like it is complaining about the first character of your XML file. My guess is that you have an empty line before the <?xml version='1.0'?> line, which should really be the very first thing in the file.

That is, every XML file should begin with a < character.