As it is a log file, it most likely doesn't contain a single root tag (which is something the committeee decided to require). Instead of the file, you thus have to parse an XML document like this:
<!DOCTYPE doc [<!ENTITY real_doc SYSTEM "$the_file_name">]><doc>&real_
+doc;</doc>