XmlReader now generating correct xml from data.