public void Setup() { status = new Status(); status.Id = "1"; status.Message = "Status Update"; status.UpdatedAtType = "datetime"; status.UpdatedAt = "10/11/2008"; statusXml = status.ToXml(); }
private XmlNode CreateStatusEntry(string status) { XmlDocument statusXml = new XmlDocument(); Status statusEntry = new Status(); statusEntry.Message = status; statusXml = statusEntry.ToXml(); return statusXml.SelectSingleNode("/*"); //XmlDocument requestXml = new XmlDocument(); //XmlElement statusEl = requestXml.CreateElement("status"); //XmlElement messageEl = requestXml.CreateElement("message"); //messageEl.InnerText = status; //statusEl.AppendChild(messageEl); //requestXml.AppendChild(statusEl); //return requestXml.SelectSingleNode("/*"); // root }