public ContractualTermsSupplement(XmlNode xmlNode)
        {
            XmlNodeList typeNodeList = xmlNode.SelectNodes("type");

            if (typeNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in typeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        typeIDRef = item.Attributes["id"].Name;
                        ContractualSupplement ob = ContractualSupplement();
                        IDManager.SetID(typeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        typeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        type = new ContractualSupplement(item);
                    }
                }
            }


            XmlNodeList publicationDateNodeList = xmlNode.SelectNodes("publicationDate");

            if (publicationDateNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in publicationDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        publicationDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(publicationDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        publicationDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        publicationDate = new XsdTypeDate(item);
                    }
                }
            }
        }
 public ContractualTermsSupplement(XmlNode xmlNode)
 {
     XmlNodeList typeNodeList = xmlNode.SelectNodes("type");
     if (typeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in typeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 typeIDRef = item.Attributes["id"].Name;
                 ContractualSupplement ob = ContractualSupplement();
                 IDManager.SetID(typeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 typeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 type = new ContractualSupplement(item);
             }
         }
     }
     
 
     XmlNodeList publicationDateNodeList = xmlNode.SelectNodes("publicationDate");
     if (publicationDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in publicationDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 publicationDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(publicationDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 publicationDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 publicationDate = new XsdTypeDate(item);
             }
         }
     }
     
 
 }
 public ContractualTermsSupplement(XmlNode xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 ContractualSupplement ob = new ContractualSupplement(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new ContractualSupplement(typeNode);
             }
         }
         else
         {
             type_ = new ContractualSupplement(typeNode);
         }
     }
     
 
     XmlNode publicationDateNode = xmlNode.SelectSingleNode("publicationDate");
     
     if (publicationDateNode != null)
     {
         if (publicationDateNode.Attributes["href"] != null || publicationDateNode.Attributes["id"] != null) 
         {
             if (publicationDateNode.Attributes["id"] != null) 
             {
                 publicationDateIDRef_ = publicationDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(publicationDateNode);
                 IDManager.SetID(publicationDateIDRef_, ob);
             }
             else if (publicationDateNode.Attributes["href"] != null)
             {
                 publicationDateIDRef_ = publicationDateNode.Attributes["href"].Value;
             }
             else
             {
                 publicationDate_ = new XsdTypeDate(publicationDateNode);
             }
         }
         else
         {
             publicationDate_ = new XsdTypeDate(publicationDateNode);
         }
     }
     
 
 }
        public ContractualTermsSupplement(XmlNode xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

            if (typeNode != null)
            {
                if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null)
                {
                    if (typeNode.Attributes["id"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["id"].Value;
                        ContractualSupplement ob = new ContractualSupplement(typeNode);
                        IDManager.SetID(typeIDRef_, ob);
                    }
                    else if (typeNode.Attributes["href"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        type_ = new ContractualSupplement(typeNode);
                    }
                }
                else
                {
                    type_ = new ContractualSupplement(typeNode);
                }
            }


            XmlNode publicationDateNode = xmlNode.SelectSingleNode("publicationDate");

            if (publicationDateNode != null)
            {
                if (publicationDateNode.Attributes["href"] != null || publicationDateNode.Attributes["id"] != null)
                {
                    if (publicationDateNode.Attributes["id"] != null)
                    {
                        publicationDateIDRef_ = publicationDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(publicationDateNode);
                        IDManager.SetID(publicationDateIDRef_, ob);
                    }
                    else if (publicationDateNode.Attributes["href"] != null)
                    {
                        publicationDateIDRef_ = publicationDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        publicationDate_ = new XsdTypeDate(publicationDateNode);
                    }
                }
                else
                {
                    publicationDate_ = new XsdTypeDate(publicationDateNode);
                }
            }
        }