Пример #1
0
        public static CT_Document Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Document ctObj = new CT_Document();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "body")
                {
                    ctObj.body = CT_Body.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "background")
                {
                    ctObj.background = CT_Background.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Пример #2
0
 public DocumentDocument(CT_Document document)
 {
     this.document = document;
 }
Пример #3
0
        public static DocumentDocument Parse(XDocument doc, XmlNamespaceManager namespaceMgr)
        {
            CT_Document obj = CT_Document.Parse(doc.Document.Root, namespaceMgr);

            return(new DocumentDocument(obj));
        }