Пример #1
0
        public XElement ReadContentFromObject(ElementNodeTemplate obj)
        {
            XElement content = new XElement("ElementNodeTemplate");

            XmlRootAttributeVersion.SetVersion(content, ObjectVersion.ElementNodeTemplate);
            XmlElementNodeTemplateFilePolicy xmlFilePolicy = new XmlElementNodeTemplateFilePolicy(obj, content);

            xmlFilePolicy.Write();
            return(content);
        }
        public void WriteContentToObject(XElement content, ElementNodeTemplate obj)
        {
            XmlElementNodeTemplateFilePolicy xmlFilePolicy = new XmlElementNodeTemplateFilePolicy(obj, content);

            xmlFilePolicy.Read();
        }