Example #1
0
        public static CommentsDocument Parse(XmlDocument xmlDoc, XmlNamespaceManager namespaceManager)
        {
            CommentsDocument commentsDoc = new CommentsDocument();

            commentsDoc.comments = CT_Comments.Parse(xmlDoc.DocumentElement, namespaceManager);
            return(commentsDoc);
        }
Example #2
0
        private CT_ExtensionList extLstField = null;                    // optional field
        public static CT_Comments Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Comments ctObj = new CT_Comments();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "authors")
                {
                    ctObj.authors = CT_Authors.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "commentList")
                {
                    ctObj.commentList = CT_CommentList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Example #3
0
 private CT_ExtensionList extLstField = null; // optional field
 public static CT_Comments Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Comments ctObj = new CT_Comments();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "authors")
             ctObj.authors = CT_Authors.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "commentList")
             ctObj.commentList = CT_CommentList.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
Example #4
0
 public void SetComments(CT_Comments comments)
 {
     this.comments = comments;
 }
Example #5
0
 public CommentsDocument(CT_Comments comments)
 {
     this.comments = comments;
 }
Example #6
0
 public void SetComments(CT_Comments comments)
 {
     this.comments = comments;
 }
Example #7
0
 public CommentsDocument(CT_Comments comments)
 {
     this.comments = comments;
 }
Example #8
0
        public static CommentsDocument Parse(Stream stream)
        {
            CT_Comments obj = (CT_Comments)serializer.Deserialize(stream);

            return(new CommentsDocument(obj));
        }