Ejemplo n.º 1
0
        public override System.Xml.XmlDocument XmlSerialize()
        {
            System.Xml.XmlDocument document = base.XmlSerialize();

            System.Xml.XmlNode propertiesNode = document.ChildNodes[1].ChildNodes[0];


            #region Properties

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureDomainId", CareMeasureDomainId.ToString());

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureDomainName", CareMeasureDomainName);

            #endregion


            #region Object Nodes

            document.LastChild.AppendChild(document.ImportNode(CareMeasureDomain.XmlSerialize().LastChild, true));

            #endregion


            return(document);
        }
Ejemplo n.º 2
0
        public override System.Xml.XmlDocument XmlSerialize()
        {
            System.Xml.XmlDocument document = base.XmlSerialize();

            System.Xml.XmlNode propertiesNode = document.ChildNodes[1].ChildNodes[0];


            #region Properties

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureDomainId", CareMeasureDomainId.ToString());

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureDomainName", CareMeasureDomainName);

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureClassId", CareMeasureClassId.ToString());

            CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CareMeasureClassName", CareMeasureClassName);

            #endregion


            #region Components

            System.Xml.XmlNode componentsNode = document.CreateElement("Components");

            document.LastChild.AppendChild(componentsNode);

            foreach (CareMeasureComponent currentComponent in components)
            {
                componentsNode.AppendChild(document.ImportNode(currentComponent.XmlSerialize().LastChild, true));
            }

            #endregion


            #region Object Nodes

            document.LastChild.AppendChild(document.ImportNode(CareMeasureClass.XmlSerialize().LastChild, true));

            #endregion


            return(document);
        }