Esempio n. 1
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);
        }
Esempio n. 2
0
 public static CT_CommentList Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_CommentList ctObj = new CT_CommentList();
     ctObj.comment = new List<CT_Comment>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "comment")
             ctObj.comment.Add(CT_Comment.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Esempio n. 3
0
        public static CT_CommentList Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CommentList ctObj = new CT_CommentList();

            ctObj.comment = new List <CT_Comment>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "comment")
                {
                    ctObj.comment.Add(CT_Comment.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Esempio n. 4
0
 public void AddNewCommentList()
 {
     this.commentListField = new CT_CommentList();
 }
Esempio n. 5
0
 public void AddNewCommentList()
 {
     this.commentListField = new CT_CommentList();
 }