Fixed XML parser not reading xml correctly