Added missing root rule for XML parser
Bug fixes in XML parser