/// <summary> /// Return the XML node of the record event /// </summary> /// <param name="oXDoc">Owner XML document</param> /// <param name="NodeName">Name of node to create</param> /// <returns>XML node of the record event</returns> public XmlElement Create_RecordEventInfoXmlNode(XmlDocument oXDoc, string NodeName) { XmlElement xProp = null; XmlElement xEvent = oXDoc.CreateElement(NodeName); xProp = oXDoc.CreateElement("Name"); xProp.InnerText = Name; xEvent.AppendChild(xProp); xProp = oXDoc.CreateElement("Date"); xProp.InnerText = StartingDate.ToString(); xEvent.AppendChild(xProp); xProp = oXDoc.CreateElement("Comment"); xProp.InnerText = Comment; xEvent.AppendChild(xProp); xEvent.AppendChild(UserInfos.Create_UserInfoCollectionXmlNode(oXDoc, "EventUserInfo")); return(xEvent); }
/// <summary> /// Return the XML node of the record session /// </summary> /// <param name="oXDoc">Owner XML document</param> /// <param name="NodeName">Name of node to create</param> /// <returns>XML node of the record session</returns> public XmlElement Create_RecordSessionInfoXmlNode(XmlDocument oXDoc, string NodeName) { XmlElement xProp = null; XmlElement xSession = oXDoc.CreateElement(NodeName); xProp = oXDoc.CreateElement("Name"); xProp.InnerText = Name; xSession.AppendChild(xProp); xProp = oXDoc.CreateElement("Date"); xProp.InnerText = SessionDate.ToString(); xSession.AppendChild(xProp); xProp = oXDoc.CreateElement("Comment"); xProp.InnerText = Comment; xSession.AppendChild(xProp); xSession.AppendChild(UserInfos.Create_UserInfoCollectionXmlNode(oXDoc, "SessionUserInfo")); return(xSession); }