示例#1
0
        public static CT_Comments Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Comments ctObj = new CT_Comments();

            ctObj.comment = new List <CT_Comment>();
            foreach (XNode childNode in node.Nodes())
            {
                var elm = childNode as XElement;
                if (elm == null)
                {
                    continue;
                }
                if (elm.Name.LocalName == "comment")
                {
                    ctObj.comment.Add(CT_Comment.Parse(elm, namespaceManager));
                }
            }
            return(ctObj);
        }
示例#2
0
        public static CommentsDocument Parse(XDocument doc, XmlNamespaceManager NameSpaceManager)
        {
            CT_Comments obj = CT_Comments.Parse(doc.Document.Root, NameSpaceManager);

            return(new CommentsDocument(obj));
        }
示例#3
0
 public CommentsDocument(CT_Comments comments)
 {
     this.comments = comments;
 }
示例#4
0
 public CommentsDocument()
 {
     comments = new CT_Comments();
 }