Пример #1
0
        public void Setup()
        {
            journal = new Journal();
            journal.Id = "1";
            journal.Body = "Test";
            journal.CreatedAt = "10/11/2008";

            journalXml = journal.ToXml();
        }
Пример #2
0
        private XmlNode CreateJournalEntry(string journalEntry)
        {
            XmlDocument journalXml = new XmlDocument();
            Journal journal = new Journal();
            journal.Body = journalEntry;

            journalXml = journal.ToXml();
            //XmlDocument requestXml = new XmlDocument();
            //XmlElement pageEl = requestXml.CreateElement("journal-entry");
            //XmlElement titleEl = requestXml.CreateElement("body");

            //titleEl.InnerText = journalEntry;

            //pageEl.AppendChild(titleEl);
            //requestXml.AppendChild(pageEl);

            return journalXml.SelectSingleNode("/*"); // root
        }