private CT_ExtensionList extLstField = null; // optional field public static CT_Comments Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_Comments ctObj = new CT_Comments(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "authors") { ctObj.authors = CT_Authors.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "commentList") { ctObj.commentList = CT_CommentList.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "extLst") { ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager); } } return(ctObj); }
public static CT_Authors Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_Authors ctObj = new CT_Authors(); ctObj.author = new List <String>(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "author") { ctObj.author.Add(childNode.Value); } } return(ctObj); }
public CT_Authors AddNewAuthors() { this.authorsField = new CT_Authors(); return(this.authorsField); }