able to generate the xml, unable to parse it