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

            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);
        }
Пример #2
0
 public CommentsDocument(CT_Comments comments)
 {
     this.comments = comments;
 }
Пример #3
0
        public static CommentsDocument Parse(XmlDocument doc, XmlNamespaceManager NameSpaceManager)
        {
            CT_Comments obj = CT_Comments.Parse(doc.DocumentElement, NameSpaceManager);

            return(new CommentsDocument(obj));
        }
Пример #4
0
 public CommentsDocument()
 {
     comments = new CT_Comments();
 }
Пример #5
0
        public static CommentsDocument Parse(Stream stream)
        {
            CT_Comments obj = (CT_Comments)serializer.Deserialize(stream);

            return(new CommentsDocument(obj));
        }