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); }
public static CommentsDocument Parse(XDocument doc, XmlNamespaceManager NameSpaceManager) { CT_Comments obj = CT_Comments.Parse(doc.Document.Root, NameSpaceManager); return(new CommentsDocument(obj)); }
public CommentsDocument(CT_Comments comments) { this.comments = comments; }
public CommentsDocument() { comments = new CT_Comments(); }