Ejemplo 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);
        }
Ejemplo n.º 2
0
 public static CT_Authors Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Authors ctObj = new CT_Authors();
     ctObj.author = new List<String>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "author")
             ctObj.author.Add(childNode.InnerText);
     }
     return ctObj;
 }
Ejemplo n.º 3
0
        public static CT_Authors Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Authors ctObj = new CT_Authors();

            ctObj.author = new List <String>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "author")
                {
                    ctObj.author.Add(childNode.InnerText);
                }
            }
            return(ctObj);
        }
Ejemplo n.º 4
0
        private CT_ExtensionList extLstField = null;                    // optional field

        //public CT_Comments()
        //{
        //    this.extLstField = new CT_ExtensionList();
        //    this.commentListField = new CT_CommentList();
        //    this.authorsField = new CT_Authors();
        //}
        public CT_Authors AddNewAuthors()
        {
            this.authorsField = new CT_Authors();
            return(this.authorsField);
        }
Ejemplo n.º 5
0
        private CT_ExtensionList extLstField = null; // optional field

        //public CT_Comments()
        //{
        //    this.extLstField = new CT_ExtensionList();
        //    this.commentListField = new CT_CommentList();
        //    this.authorsField = new CT_Authors();
        //}
        public CT_Authors AddNewAuthors()
        {
            this.authorsField = new CT_Authors();
            return this.authorsField;
        }