public Person(XmlNode xmlNode)
 {
     XmlNode honorificNode = xmlNode.SelectSingleNode("honorific");
     
     if (honorificNode != null)
     {
         if (honorificNode.Attributes["href"] != null || honorificNode.Attributes["id"] != null) 
         {
             if (honorificNode.Attributes["id"] != null) 
             {
                 honorificIDRef_ = honorificNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(honorificNode);
                 IDManager.SetID(honorificIDRef_, ob);
             }
             else if (honorificNode.Attributes["href"] != null)
             {
                 honorificIDRef_ = honorificNode.Attributes["href"].Value;
             }
             else
             {
                 honorific_ = new XsdTypeNormalizedString(honorificNode);
             }
         }
         else
         {
             honorific_ = new XsdTypeNormalizedString(honorificNode);
         }
     }
     
 
     XmlNode firstNameNode = xmlNode.SelectSingleNode("firstName");
     
     if (firstNameNode != null)
     {
         if (firstNameNode.Attributes["href"] != null || firstNameNode.Attributes["id"] != null) 
         {
             if (firstNameNode.Attributes["id"] != null) 
             {
                 firstNameIDRef_ = firstNameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(firstNameNode);
                 IDManager.SetID(firstNameIDRef_, ob);
             }
             else if (firstNameNode.Attributes["href"] != null)
             {
                 firstNameIDRef_ = firstNameNode.Attributes["href"].Value;
             }
             else
             {
                 firstName_ = new XsdTypeNormalizedString(firstNameNode);
             }
         }
         else
         {
             firstName_ = new XsdTypeNormalizedString(firstNameNode);
         }
     }
     
 
     XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");
     
     if (middleNameNodeList != null)
     {
         this.middleName_ = new List<XsdTypeNormalizedString>();
         foreach (XmlNode item in middleNameNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     middleNameIDRef_ = item.Attributes["id"].Value;
                     middleName_.Add(new XsdTypeNormalizedString(item));
                     IDManager.SetID(middleNameIDRef_, middleName_[middleName_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     middleNameIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 middleName_.Add(new XsdTypeNormalizedString(item));
                 }
             }
             else
             {
                 middleName_.Add(new XsdTypeNormalizedString(item));
             }
         }
     }
     
 
     XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");
     
     if (initialNodeList != null)
     {
         this.initial_ = new List<Initial>();
         foreach (XmlNode item in initialNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     initialIDRef_ = item.Attributes["id"].Value;
                     initial_.Add(new Initial(item));
                     IDManager.SetID(initialIDRef_, initial_[initial_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     initialIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 initial_.Add(new Initial(item));
                 }
             }
             else
             {
                 initial_.Add(new Initial(item));
             }
         }
     }
     
 
     XmlNode surnameNode = xmlNode.SelectSingleNode("surname");
     
     if (surnameNode != null)
     {
         if (surnameNode.Attributes["href"] != null || surnameNode.Attributes["id"] != null) 
         {
             if (surnameNode.Attributes["id"] != null) 
             {
                 surnameIDRef_ = surnameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(surnameNode);
                 IDManager.SetID(surnameIDRef_, ob);
             }
             else if (surnameNode.Attributes["href"] != null)
             {
                 surnameIDRef_ = surnameNode.Attributes["href"].Value;
             }
             else
             {
                 surname_ = new XsdTypeNormalizedString(surnameNode);
             }
         }
         else
         {
             surname_ = new XsdTypeNormalizedString(surnameNode);
         }
     }
     
 
     XmlNode suffixNode = xmlNode.SelectSingleNode("suffix");
     
     if (suffixNode != null)
     {
         if (suffixNode.Attributes["href"] != null || suffixNode.Attributes["id"] != null) 
         {
             if (suffixNode.Attributes["id"] != null) 
             {
                 suffixIDRef_ = suffixNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(suffixNode);
                 IDManager.SetID(suffixIDRef_, ob);
             }
             else if (suffixNode.Attributes["href"] != null)
             {
                 suffixIDRef_ = suffixNode.Attributes["href"].Value;
             }
             else
             {
                 suffix_ = new XsdTypeNormalizedString(suffixNode);
             }
         }
         else
         {
             suffix_ = new XsdTypeNormalizedString(suffixNode);
         }
     }
     
 
     XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");
     
     if (personIdNodeList != null)
     {
         this.personId_ = new List<PersonId>();
         foreach (XmlNode item in personIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     personIdIDRef_ = item.Attributes["id"].Value;
                     personId_.Add(new PersonId(item));
                     IDManager.SetID(personIdIDRef_, personId_[personId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     personIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 personId_.Add(new PersonId(item));
                 }
             }
             else
             {
                 personId_.Add(new PersonId(item));
             }
         }
     }
     
 
     XmlNode businessUnitReferenceNode = xmlNode.SelectSingleNode("businessUnitReference");
     
     if (businessUnitReferenceNode != null)
     {
         if (businessUnitReferenceNode.Attributes["href"] != null || businessUnitReferenceNode.Attributes["id"] != null) 
         {
             if (businessUnitReferenceNode.Attributes["id"] != null) 
             {
                 businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["id"].Value;
                 BusinessUnitReference ob = new BusinessUnitReference(businessUnitReferenceNode);
                 IDManager.SetID(businessUnitReferenceIDRef_, ob);
             }
             else if (businessUnitReferenceNode.Attributes["href"] != null)
             {
                 businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
             }
         }
         else
         {
             businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
         }
     }
     
 
     XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");
     
     if (contactInfoNode != null)
     {
         if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null) 
         {
             if (contactInfoNode.Attributes["id"] != null) 
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                 ContactInformation ob = new ContactInformation(contactInfoNode);
                 IDManager.SetID(contactInfoIDRef_, ob);
             }
             else if (contactInfoNode.Attributes["href"] != null)
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
             }
             else
             {
                 contactInfo_ = new ContactInformation(contactInfoNode);
             }
         }
         else
         {
             contactInfo_ = new ContactInformation(contactInfoNode);
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
 }
 public Party(XmlNode xmlNode)
 {
     XmlNodeList partyIdNodeList = xmlNode.SelectNodes("partyId");
     
     foreach (XmlNode item in partyIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 partyIdIDRef = item.Attributes["id"].Name;
                 List<PartyId> ob = new List<PartyId>();
                 ob.Add(new PartyId(item));
                 IDManager.SetID(partyIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 partyIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
             partyId.Add(new PartyId(item));
             }
         }
     }
     
 
     XmlNodeList partyNameNodeList = xmlNode.SelectNodes("partyName");
     if (partyNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in partyNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 partyNameIDRef = item.Attributes["id"].Name;
                 PartyName ob = PartyName();
                 IDManager.SetID(partyNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 partyNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 partyName = new PartyName(item);
             }
         }
     }
     
 
     XmlNodeList classificationNodeList = xmlNode.SelectNodes("classification");
     
     foreach (XmlNode item in classificationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 classificationIDRef = item.Attributes["id"].Name;
                 List<IndustryClassification> ob = new List<IndustryClassification>();
                 ob.Add(new IndustryClassification(item));
                 IDManager.SetID(classificationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 classificationIDRef = item.Attributes["href"].Name;
             }
             else
             {
             classification.Add(new IndustryClassification(item));
             }
         }
     }
     
 
     XmlNodeList creditRatingNodeList = xmlNode.SelectNodes("creditRating");
     
     foreach (XmlNode item in creditRatingNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 creditRatingIDRef = item.Attributes["id"].Name;
                 List<CreditRating> ob = new List<CreditRating>();
                 ob.Add(new CreditRating(item));
                 IDManager.SetID(creditRatingIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 creditRatingIDRef = item.Attributes["href"].Name;
             }
             else
             {
             creditRating.Add(new CreditRating(item));
             }
         }
     }
     
 
     XmlNodeList countryNodeList = xmlNode.SelectNodes("country");
     if (countryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in countryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 countryIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(countryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 countryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 country = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList jurisdictionNodeList = xmlNode.SelectNodes("jurisdiction");
     
     foreach (XmlNode item in jurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 jurisdictionIDRef = item.Attributes["id"].Name;
                 List<GoverningLaw> ob = new List<GoverningLaw>();
                 ob.Add(new GoverningLaw(item));
                 IDManager.SetID(jurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 jurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
             jurisdiction.Add(new GoverningLaw(item));
             }
         }
     }
     
 
     XmlNodeList organizationTypeNodeList = xmlNode.SelectNodes("organizationType");
     if (organizationTypeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in organizationTypeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 organizationTypeIDRef = item.Attributes["id"].Name;
                 OrganizationType ob = OrganizationType();
                 IDManager.SetID(organizationTypeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 organizationTypeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 organizationType = new OrganizationType(item);
             }
         }
     }
     
 
     XmlNodeList contactInfoNodeList = xmlNode.SelectNodes("contactInfo");
     if (contactInfoNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in contactInfoNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 contactInfoIDRef = item.Attributes["id"].Name;
                 ContactInformation ob = ContactInformation();
                 IDManager.SetID(contactInfoIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 contactInfoIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 contactInfo = new ContactInformation(item);
             }
         }
     }
     
 
     XmlNodeList businessUnitNodeList = xmlNode.SelectNodes("businessUnit");
     
     foreach (XmlNode item in businessUnitNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 businessUnitIDRef = item.Attributes["id"].Name;
                 List<BusinessUnit> ob = new List<BusinessUnit>();
                 ob.Add(new BusinessUnit(item));
                 IDManager.SetID(businessUnitIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 businessUnitIDRef = item.Attributes["href"].Name;
             }
             else
             {
             businessUnit.Add(new BusinessUnit(item));
             }
         }
     }
     
 
     XmlNodeList personNodeList = xmlNode.SelectNodes("person");
     
     foreach (XmlNode item in personNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 personIDRef = item.Attributes["id"].Name;
                 List<Person> ob = new List<Person>();
                 ob.Add(new Person(item));
                 IDManager.SetID(personIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 personIDRef = item.Attributes["href"].Name;
             }
             else
             {
             person.Add(new Person(item));
             }
         }
     }
     
 
 }
 public Address(XmlNode xmlNode)
 {
     XmlNodeList streetAddressNodeList = xmlNode.SelectNodes("streetAddress");
     if (streetAddressNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in streetAddressNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 streetAddressIDRef = item.Attributes["id"].Name;
                 StreetAddress ob = StreetAddress();
                 IDManager.SetID(streetAddressIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 streetAddressIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 streetAddress = new StreetAddress(item);
             }
         }
     }
     
 
     XmlNodeList cityNodeList = xmlNode.SelectNodes("city");
     if (cityNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in cityNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 cityIDRef = item.Attributes["id"].Name;
                 XsdTypeString ob = XsdTypeString();
                 IDManager.SetID(cityIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 cityIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 city = new XsdTypeString(item);
             }
         }
     }
     
 
     XmlNodeList stateNodeList = xmlNode.SelectNodes("state");
     if (stateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in stateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 stateIDRef = item.Attributes["id"].Name;
                 XsdTypeString ob = XsdTypeString();
                 IDManager.SetID(stateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 stateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 state = new XsdTypeString(item);
             }
         }
     }
     
 
     XmlNodeList countryNodeList = xmlNode.SelectNodes("country");
     if (countryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in countryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 countryIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(countryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 countryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 country = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList postalCodeNodeList = xmlNode.SelectNodes("postalCode");
     if (postalCodeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in postalCodeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 postalCodeIDRef = item.Attributes["id"].Name;
                 XsdTypeString ob = XsdTypeString();
                 IDManager.SetID(postalCodeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 postalCodeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 postalCode = new XsdTypeString(item);
             }
         }
     }
     
 
 }
 public CommodityMetalBrand(XmlNode xmlNode)
 {
     XmlNodeList nameNodeList = xmlNode.SelectNodes("name");
     if (nameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in nameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 nameIDRef = item.Attributes["id"].Name;
                 CommodityMetalBrandName ob = CommodityMetalBrandName();
                 IDManager.SetID(nameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 nameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 name = new CommodityMetalBrandName(item);
             }
         }
     }
     
 
     XmlNodeList brandManagerNodeList = xmlNode.SelectNodes("brandManager");
     if (brandManagerNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in brandManagerNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 brandManagerIDRef = item.Attributes["id"].Name;
                 CommodityMetalBrandManager ob = CommodityMetalBrandManager();
                 IDManager.SetID(brandManagerIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 brandManagerIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 brandManager = new CommodityMetalBrandManager(item);
             }
         }
     }
     
 
     XmlNodeList countryNodeList = xmlNode.SelectNodes("country");
     if (countryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in countryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 countryIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(countryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 countryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 country = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList producerNodeList = xmlNode.SelectNodes("producer");
     if (producerNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in producerNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 producerIDRef = item.Attributes["id"].Name;
                 CommodityMetalProducer ob = CommodityMetalProducer();
                 IDManager.SetID(producerIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 producerIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 producer = new CommodityMetalProducer(item);
             }
         }
     }
     
 
 }
 public Party(XmlNode xmlNode)
 {
     XmlNodeList partyIdNodeList = xmlNode.SelectNodes("partyId");
     
     if (partyIdNodeList != null)
     {
         this.partyId_ = new List<PartyId>();
         foreach (XmlNode item in partyIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     partyIdIDRef_ = item.Attributes["id"].Value;
                     partyId_.Add(new PartyId(item));
                     IDManager.SetID(partyIdIDRef_, partyId_[partyId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     partyIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 partyId_.Add(new PartyId(item));
                 }
             }
             else
             {
                 partyId_.Add(new PartyId(item));
             }
         }
     }
     
 
     XmlNode partyNameNode = xmlNode.SelectSingleNode("partyName");
     
     if (partyNameNode != null)
     {
         if (partyNameNode.Attributes["href"] != null || partyNameNode.Attributes["id"] != null) 
         {
             if (partyNameNode.Attributes["id"] != null) 
             {
                 partyNameIDRef_ = partyNameNode.Attributes["id"].Value;
                 PartyName ob = new PartyName(partyNameNode);
                 IDManager.SetID(partyNameIDRef_, ob);
             }
             else if (partyNameNode.Attributes["href"] != null)
             {
                 partyNameIDRef_ = partyNameNode.Attributes["href"].Value;
             }
             else
             {
                 partyName_ = new PartyName(partyNameNode);
             }
         }
         else
         {
             partyName_ = new PartyName(partyNameNode);
         }
     }
     
 
     XmlNodeList classificationNodeList = xmlNode.SelectNodes("classification");
     
     if (classificationNodeList != null)
     {
         this.classification_ = new List<IndustryClassification>();
         foreach (XmlNode item in classificationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     classificationIDRef_ = item.Attributes["id"].Value;
                     classification_.Add(new IndustryClassification(item));
                     IDManager.SetID(classificationIDRef_, classification_[classification_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     classificationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 classification_.Add(new IndustryClassification(item));
                 }
             }
             else
             {
                 classification_.Add(new IndustryClassification(item));
             }
         }
     }
     
 
     XmlNodeList creditRatingNodeList = xmlNode.SelectNodes("creditRating");
     
     if (creditRatingNodeList != null)
     {
         this.creditRating_ = new List<CreditRating>();
         foreach (XmlNode item in creditRatingNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     creditRatingIDRef_ = item.Attributes["id"].Value;
                     creditRating_.Add(new CreditRating(item));
                     IDManager.SetID(creditRatingIDRef_, creditRating_[creditRating_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     creditRatingIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 creditRating_.Add(new CreditRating(item));
                 }
             }
             else
             {
                 creditRating_.Add(new CreditRating(item));
             }
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
     XmlNodeList jurisdictionNodeList = xmlNode.SelectNodes("jurisdiction");
     
     if (jurisdictionNodeList != null)
     {
         this.jurisdiction_ = new List<GoverningLaw>();
         foreach (XmlNode item in jurisdictionNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     jurisdictionIDRef_ = item.Attributes["id"].Value;
                     jurisdiction_.Add(new GoverningLaw(item));
                     IDManager.SetID(jurisdictionIDRef_, jurisdiction_[jurisdiction_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     jurisdictionIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 jurisdiction_.Add(new GoverningLaw(item));
                 }
             }
             else
             {
                 jurisdiction_.Add(new GoverningLaw(item));
             }
         }
     }
     
 
     XmlNode organizationTypeNode = xmlNode.SelectSingleNode("organizationType");
     
     if (organizationTypeNode != null)
     {
         if (organizationTypeNode.Attributes["href"] != null || organizationTypeNode.Attributes["id"] != null) 
         {
             if (organizationTypeNode.Attributes["id"] != null) 
             {
                 organizationTypeIDRef_ = organizationTypeNode.Attributes["id"].Value;
                 OrganizationType ob = new OrganizationType(organizationTypeNode);
                 IDManager.SetID(organizationTypeIDRef_, ob);
             }
             else if (organizationTypeNode.Attributes["href"] != null)
             {
                 organizationTypeIDRef_ = organizationTypeNode.Attributes["href"].Value;
             }
             else
             {
                 organizationType_ = new OrganizationType(organizationTypeNode);
             }
         }
         else
         {
             organizationType_ = new OrganizationType(organizationTypeNode);
         }
     }
     
 
     XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");
     
     if (contactInfoNode != null)
     {
         if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null) 
         {
             if (contactInfoNode.Attributes["id"] != null) 
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                 ContactInformation ob = new ContactInformation(contactInfoNode);
                 IDManager.SetID(contactInfoIDRef_, ob);
             }
             else if (contactInfoNode.Attributes["href"] != null)
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
             }
             else
             {
                 contactInfo_ = new ContactInformation(contactInfoNode);
             }
         }
         else
         {
             contactInfo_ = new ContactInformation(contactInfoNode);
         }
     }
     
 
     XmlNodeList businessUnitNodeList = xmlNode.SelectNodes("businessUnit");
     
     if (businessUnitNodeList != null)
     {
         this.businessUnit_ = new List<BusinessUnit>();
         foreach (XmlNode item in businessUnitNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     businessUnitIDRef_ = item.Attributes["id"].Value;
                     businessUnit_.Add(new BusinessUnit(item));
                     IDManager.SetID(businessUnitIDRef_, businessUnit_[businessUnit_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     businessUnitIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 businessUnit_.Add(new BusinessUnit(item));
                 }
             }
             else
             {
                 businessUnit_.Add(new BusinessUnit(item));
             }
         }
     }
     
 
     XmlNodeList personNodeList = xmlNode.SelectNodes("person");
     
     if (personNodeList != null)
     {
         this.person_ = new List<Person>();
         foreach (XmlNode item in personNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     personIDRef_ = item.Attributes["id"].Value;
                     person_.Add(new Person(item));
                     IDManager.SetID(personIDRef_, person_[person_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     personIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 person_.Add(new Person(item));
                 }
             }
             else
             {
                 person_.Add(new Person(item));
             }
         }
     }
     
 
 }
        public Address(XmlNode xmlNode)
        {
            XmlNodeList streetAddressNodeList = xmlNode.SelectNodes("streetAddress");

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

            foreach (XmlNode item in streetAddressNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        streetAddressIDRef = item.Attributes["id"].Name;
                        StreetAddress ob = StreetAddress();
                        IDManager.SetID(streetAddressIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        streetAddressIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        streetAddress = new StreetAddress(item);
                    }
                }
            }


            XmlNodeList cityNodeList = xmlNode.SelectNodes("city");

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

            foreach (XmlNode item in cityNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        cityIDRef = item.Attributes["id"].Name;
                        XsdTypeString ob = XsdTypeString();
                        IDManager.SetID(cityIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        cityIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        city = new XsdTypeString(item);
                    }
                }
            }


            XmlNodeList stateNodeList = xmlNode.SelectNodes("state");

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

            foreach (XmlNode item in stateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        stateIDRef = item.Attributes["id"].Name;
                        XsdTypeString ob = XsdTypeString();
                        IDManager.SetID(stateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        stateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        state = new XsdTypeString(item);
                    }
                }
            }


            XmlNodeList countryNodeList = xmlNode.SelectNodes("country");

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

            foreach (XmlNode item in countryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        countryIDRef = item.Attributes["id"].Name;
                        CountryCode ob = CountryCode();
                        IDManager.SetID(countryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        countryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        country = new CountryCode(item);
                    }
                }
            }


            XmlNodeList postalCodeNodeList = xmlNode.SelectNodes("postalCode");

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

            foreach (XmlNode item in postalCodeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        postalCodeIDRef = item.Attributes["id"].Name;
                        XsdTypeString ob = XsdTypeString();
                        IDManager.SetID(postalCodeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        postalCodeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        postalCode = new XsdTypeString(item);
                    }
                }
            }
        }
 public EquityOptionTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList exchangeLookAlikeNodeList = xmlNode.SelectNodes("exchangeLookAlike");
     if (exchangeLookAlikeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in exchangeLookAlikeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 exchangeLookAlikeIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(exchangeLookAlikeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 exchangeLookAlikeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 exchangeLookAlike = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList exchangeTradedContractNearestNodeList = xmlNode.SelectNodes("exchangeTradedContractNearest");
     if (exchangeTradedContractNearestNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in exchangeTradedContractNearestNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 exchangeTradedContractNearestIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(exchangeTradedContractNearestIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 exchangeTradedContractNearestIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 exchangeTradedContractNearest = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback");
     if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback");
     if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList methodOfAdjustmentNodeList = xmlNode.SelectNodes("methodOfAdjustment");
     if (methodOfAdjustmentNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in methodOfAdjustmentNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 methodOfAdjustmentIDRef = item.Attributes["id"].Name;
                 MethodOfAdjustmentEnum ob = MethodOfAdjustmentEnum();
                 IDManager.SetID(methodOfAdjustmentIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 methodOfAdjustmentIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 methodOfAdjustment = new MethodOfAdjustmentEnum(item);
             }
         }
     }
     
 
     XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction");
     if (localJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in localJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(localJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 localJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 localJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList optionEntitlementNodeList = xmlNode.SelectNodes("optionEntitlement");
     if (optionEntitlementNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in optionEntitlementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 optionEntitlementIDRef = item.Attributes["id"].Name;
                 PositiveDecimal ob = PositiveDecimal();
                 IDManager.SetID(optionEntitlementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 optionEntitlementIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 optionEntitlement = new PositiveDecimal(item);
             }
         }
     }
     
 
     XmlNodeList multiplierNodeList = xmlNode.SelectNodes("multiplier");
     if (multiplierNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multiplierNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multiplierIDRef = item.Attributes["id"].Name;
                 PositiveDecimal ob = PositiveDecimal();
                 IDManager.SetID(multiplierIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multiplierIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multiplier = new PositiveDecimal(item);
             }
         }
     }
     
 
     XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents");
     if (extraordinaryEventsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in extraordinaryEventsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 extraordinaryEventsIDRef = item.Attributes["id"].Name;
                 ExtraordinaryEvents ob = ExtraordinaryEvents();
                 IDManager.SetID(extraordinaryEventsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 extraordinaryEventsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 extraordinaryEvents = new ExtraordinaryEvents(item);
             }
         }
     }
     
 
 }
 public CommodityMetalBrand(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 CommodityMetalBrandName ob = new CommodityMetalBrandName(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new CommodityMetalBrandName(nameNode);
             }
         }
         else
         {
             name_ = new CommodityMetalBrandName(nameNode);
         }
     }
     
 
     XmlNode brandManagerNode = xmlNode.SelectSingleNode("brandManager");
     
     if (brandManagerNode != null)
     {
         if (brandManagerNode.Attributes["href"] != null || brandManagerNode.Attributes["id"] != null) 
         {
             if (brandManagerNode.Attributes["id"] != null) 
             {
                 brandManagerIDRef_ = brandManagerNode.Attributes["id"].Value;
                 CommodityMetalBrandManager ob = new CommodityMetalBrandManager(brandManagerNode);
                 IDManager.SetID(brandManagerIDRef_, ob);
             }
             else if (brandManagerNode.Attributes["href"] != null)
             {
                 brandManagerIDRef_ = brandManagerNode.Attributes["href"].Value;
             }
             else
             {
                 brandManager_ = new CommodityMetalBrandManager(brandManagerNode);
             }
         }
         else
         {
             brandManager_ = new CommodityMetalBrandManager(brandManagerNode);
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
     XmlNode producerNode = xmlNode.SelectSingleNode("producer");
     
     if (producerNode != null)
     {
         if (producerNode.Attributes["href"] != null || producerNode.Attributes["id"] != null) 
         {
             if (producerNode.Attributes["id"] != null) 
             {
                 producerIDRef_ = producerNode.Attributes["id"].Value;
                 CommodityMetalProducer ob = new CommodityMetalProducer(producerNode);
                 IDManager.SetID(producerIDRef_, ob);
             }
             else if (producerNode.Attributes["href"] != null)
             {
                 producerIDRef_ = producerNode.Attributes["href"].Value;
             }
             else
             {
                 producer_ = new CommodityMetalProducer(producerNode);
             }
         }
         else
         {
             producer_ = new CommodityMetalProducer(producerNode);
         }
     }
     
 
 }
 public EquityOptionTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode exchangeLookAlikeNode = xmlNode.SelectSingleNode("exchangeLookAlike");
     
     if (exchangeLookAlikeNode != null)
     {
         if (exchangeLookAlikeNode.Attributes["href"] != null || exchangeLookAlikeNode.Attributes["id"] != null) 
         {
             if (exchangeLookAlikeNode.Attributes["id"] != null) 
             {
                 exchangeLookAlikeIDRef_ = exchangeLookAlikeNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(exchangeLookAlikeNode);
                 IDManager.SetID(exchangeLookAlikeIDRef_, ob);
             }
             else if (exchangeLookAlikeNode.Attributes["href"] != null)
             {
                 exchangeLookAlikeIDRef_ = exchangeLookAlikeNode.Attributes["href"].Value;
             }
             else
             {
                 exchangeLookAlike_ = new XsdTypeBoolean(exchangeLookAlikeNode);
             }
         }
         else
         {
             exchangeLookAlike_ = new XsdTypeBoolean(exchangeLookAlikeNode);
         }
     }
     
 
     XmlNode exchangeTradedContractNearestNode = xmlNode.SelectSingleNode("exchangeTradedContractNearest");
     
     if (exchangeTradedContractNearestNode != null)
     {
         if (exchangeTradedContractNearestNode.Attributes["href"] != null || exchangeTradedContractNearestNode.Attributes["id"] != null) 
         {
             if (exchangeTradedContractNearestNode.Attributes["id"] != null) 
             {
                 exchangeTradedContractNearestIDRef_ = exchangeTradedContractNearestNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(exchangeTradedContractNearestNode);
                 IDManager.SetID(exchangeTradedContractNearestIDRef_, ob);
             }
             else if (exchangeTradedContractNearestNode.Attributes["href"] != null)
             {
                 exchangeTradedContractNearestIDRef_ = exchangeTradedContractNearestNode.Attributes["href"].Value;
             }
             else
             {
                 exchangeTradedContractNearest_ = new XsdTypeBoolean(exchangeTradedContractNearestNode);
             }
         }
         else
         {
             exchangeTradedContractNearest_ = new XsdTypeBoolean(exchangeTradedContractNearestNode);
         }
     }
     
 
     XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");
     
     if (multipleExchangeIndexAnnexFallbackNode != null)
     {
         if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
             }
             else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
             }
         }
         else
         {
             multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");
     
     if (componentSecurityIndexAnnexFallbackNode != null)
     {
         if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
             }
             else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
             }
         }
         else
         {
             componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode methodOfAdjustmentNode = xmlNode.SelectSingleNode("methodOfAdjustment");
     
     if (methodOfAdjustmentNode != null)
     {
         if (methodOfAdjustmentNode.Attributes["href"] != null || methodOfAdjustmentNode.Attributes["id"] != null) 
         {
             if (methodOfAdjustmentNode.Attributes["id"] != null) 
             {
                 methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["id"].Value;
                 MethodOfAdjustmentEnum ob = new MethodOfAdjustmentEnum(methodOfAdjustmentNode);
                 IDManager.SetID(methodOfAdjustmentIDRef_, ob);
             }
             else if (methodOfAdjustmentNode.Attributes["href"] != null)
             {
                 methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["href"].Value;
             }
             else
             {
                 methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode);
             }
         }
         else
         {
             methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode);
         }
     }
     
 
     XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");
     
     if (localJurisdictionNode != null)
     {
         if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) 
         {
             if (localJurisdictionNode.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(localJurisdictionNode);
                 IDManager.SetID(localJurisdictionIDRef_, ob);
             }
             else if (localJurisdictionNode.Attributes["href"] != null)
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 localJurisdiction_ = new CountryCode(localJurisdictionNode);
             }
         }
         else
         {
             localJurisdiction_ = new CountryCode(localJurisdictionNode);
         }
     }
     
 
     XmlNode optionEntitlementNode = xmlNode.SelectSingleNode("optionEntitlement");
     
     if (optionEntitlementNode != null)
     {
         if (optionEntitlementNode.Attributes["href"] != null || optionEntitlementNode.Attributes["id"] != null) 
         {
             if (optionEntitlementNode.Attributes["id"] != null) 
             {
                 optionEntitlementIDRef_ = optionEntitlementNode.Attributes["id"].Value;
                 PositiveDecimal ob = new PositiveDecimal(optionEntitlementNode);
                 IDManager.SetID(optionEntitlementIDRef_, ob);
             }
             else if (optionEntitlementNode.Attributes["href"] != null)
             {
                 optionEntitlementIDRef_ = optionEntitlementNode.Attributes["href"].Value;
             }
             else
             {
                 optionEntitlement_ = new PositiveDecimal(optionEntitlementNode);
             }
         }
         else
         {
             optionEntitlement_ = new PositiveDecimal(optionEntitlementNode);
         }
     }
     
 
     XmlNode multiplierNode = xmlNode.SelectSingleNode("multiplier");
     
     if (multiplierNode != null)
     {
         if (multiplierNode.Attributes["href"] != null || multiplierNode.Attributes["id"] != null) 
         {
             if (multiplierNode.Attributes["id"] != null) 
             {
                 multiplierIDRef_ = multiplierNode.Attributes["id"].Value;
                 PositiveDecimal ob = new PositiveDecimal(multiplierNode);
                 IDManager.SetID(multiplierIDRef_, ob);
             }
             else if (multiplierNode.Attributes["href"] != null)
             {
                 multiplierIDRef_ = multiplierNode.Attributes["href"].Value;
             }
             else
             {
                 multiplier_ = new PositiveDecimal(multiplierNode);
             }
         }
         else
         {
             multiplier_ = new PositiveDecimal(multiplierNode);
         }
     }
     
 
     XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents");
     
     if (extraordinaryEventsNode != null)
     {
         if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) 
         {
             if (extraordinaryEventsNode.Attributes["id"] != null) 
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value;
                 ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode);
                 IDManager.SetID(extraordinaryEventsIDRef_, ob);
             }
             else if (extraordinaryEventsNode.Attributes["href"] != null)
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value;
             }
             else
             {
                 extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
             }
         }
         else
         {
             extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
         }
     }
     
 
 }
 public EquitySwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode mutualEarlyTerminationNode = xmlNode.SelectSingleNode("mutualEarlyTermination");
     
     if (mutualEarlyTerminationNode != null)
     {
         if (mutualEarlyTerminationNode.Attributes["href"] != null || mutualEarlyTerminationNode.Attributes["id"] != null) 
         {
             if (mutualEarlyTerminationNode.Attributes["id"] != null) 
             {
                 mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(mutualEarlyTerminationNode);
                 IDManager.SetID(mutualEarlyTerminationIDRef_, ob);
             }
             else if (mutualEarlyTerminationNode.Attributes["href"] != null)
             {
                 mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["href"].Value;
             }
             else
             {
                 mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
             }
         }
         else
         {
             mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
         }
     }
     
 
     XmlNode optionalEarlyTerminationNode = xmlNode.SelectSingleNode("optionalEarlyTermination");
     
     if (optionalEarlyTerminationNode != null)
     {
         if (optionalEarlyTerminationNode.Attributes["href"] != null || optionalEarlyTerminationNode.Attributes["id"] != null) 
         {
             if (optionalEarlyTerminationNode.Attributes["id"] != null) 
             {
                 optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(optionalEarlyTerminationNode);
                 IDManager.SetID(optionalEarlyTerminationIDRef_, ob);
             }
             else if (optionalEarlyTerminationNode.Attributes["href"] != null)
             {
                 optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["href"].Value;
             }
             else
             {
                 optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
             }
         }
         else
         {
             optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
         }
     }
     
 
     XmlNode breakFundingRecoveryNode = xmlNode.SelectSingleNode("breakFundingRecovery");
     
     if (breakFundingRecoveryNode != null)
     {
         if (breakFundingRecoveryNode.Attributes["href"] != null || breakFundingRecoveryNode.Attributes["id"] != null) 
         {
             if (breakFundingRecoveryNode.Attributes["id"] != null) 
             {
                 breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(breakFundingRecoveryNode);
                 IDManager.SetID(breakFundingRecoveryIDRef_, ob);
             }
             else if (breakFundingRecoveryNode.Attributes["href"] != null)
             {
                 breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["href"].Value;
             }
             else
             {
                 breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
             }
         }
         else
         {
             breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
         }
     }
     
 
     XmlNode breakFeeElectionNode = xmlNode.SelectSingleNode("breakFeeElection");
     
     if (breakFeeElectionNode != null)
     {
         if (breakFeeElectionNode.Attributes["href"] != null || breakFeeElectionNode.Attributes["id"] != null) 
         {
             if (breakFeeElectionNode.Attributes["id"] != null) 
             {
                 breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["id"].Value;
                 FeeElectionEnum ob = new FeeElectionEnum(breakFeeElectionNode);
                 IDManager.SetID(breakFeeElectionIDRef_, ob);
             }
             else if (breakFeeElectionNode.Attributes["href"] != null)
             {
                 breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["href"].Value;
             }
             else
             {
                 breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
             }
         }
         else
         {
             breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
         }
     }
     
 
     XmlNode breakFeeRateNode = xmlNode.SelectSingleNode("breakFeeRate");
     
     if (breakFeeRateNode != null)
     {
         if (breakFeeRateNode.Attributes["href"] != null || breakFeeRateNode.Attributes["id"] != null) 
         {
             if (breakFeeRateNode.Attributes["id"] != null) 
             {
                 breakFeeRateIDRef_ = breakFeeRateNode.Attributes["id"].Value;
                 NonNegativeDecimal ob = new NonNegativeDecimal(breakFeeRateNode);
                 IDManager.SetID(breakFeeRateIDRef_, ob);
             }
             else if (breakFeeRateNode.Attributes["href"] != null)
             {
                 breakFeeRateIDRef_ = breakFeeRateNode.Attributes["href"].Value;
             }
             else
             {
                 breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
             }
         }
         else
         {
             breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
         }
     }
     
 
     XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");
     
     if (multipleExchangeIndexAnnexFallbackNode != null)
     {
         if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
             }
             else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
             }
         }
         else
         {
             multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");
     
     if (componentSecurityIndexAnnexFallbackNode != null)
     {
         if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
             }
             else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
             }
         }
         else
         {
             componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");
     
     if (localJurisdictionNode != null)
     {
         if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) 
         {
             if (localJurisdictionNode.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(localJurisdictionNode);
                 IDManager.SetID(localJurisdictionIDRef_, ob);
             }
             else if (localJurisdictionNode.Attributes["href"] != null)
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 localJurisdiction_ = new CountryCode(localJurisdictionNode);
             }
         }
         else
         {
             localJurisdiction_ = new CountryCode(localJurisdictionNode);
         }
     }
     
 
     XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");
     
     if (relevantJurisdictionNode != null)
     {
         if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null) 
         {
             if (relevantJurisdictionNode.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(relevantJurisdictionNode);
                 IDManager.SetID(relevantJurisdictionIDRef_, ob);
             }
             else if (relevantJurisdictionNode.Attributes["href"] != null)
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
             }
         }
         else
         {
             relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
         }
     }
     
 
     XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents");
     
     if (extraordinaryEventsNode != null)
     {
         if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) 
         {
             if (extraordinaryEventsNode.Attributes["id"] != null) 
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value;
                 ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode);
                 IDManager.SetID(extraordinaryEventsIDRef_, ob);
             }
             else if (extraordinaryEventsNode.Attributes["href"] != null)
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value;
             }
             else
             {
                 extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
             }
         }
         else
         {
             extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
         }
     }
     
 
 }
 public DividendSwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList dividendLegNodeList = xmlNode.SelectNodes("dividendLeg");
     if (dividendLegNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in dividendLegNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 dividendLegIDRef = item.Attributes["id"].Name;
                 DividendLeg ob = DividendLeg();
                 IDManager.SetID(dividendLegIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 dividendLegIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 dividendLeg = new DividendLeg(item);
             }
         }
     }
     
 
     XmlNodeList fixedLegNodeList = xmlNode.SelectNodes("fixedLeg");
     if (fixedLegNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fixedLegNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fixedLegIDRef = item.Attributes["id"].Name;
                 FixedPaymentLeg ob = FixedPaymentLeg();
                 IDManager.SetID(fixedLegIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fixedLegIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fixedLeg = new FixedPaymentLeg(item);
             }
         }
     }
     
 
     XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback");
     if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback");
     if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction");
     if (localJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in localJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(localJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 localJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 localJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction");
     if (relevantJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in relevantJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(relevantJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 relevantJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 relevantJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
 }
 public Address(XmlNode xmlNode)
 {
     XmlNode streetAddressNode = xmlNode.SelectSingleNode("streetAddress");
     
     if (streetAddressNode != null)
     {
         if (streetAddressNode.Attributes["href"] != null || streetAddressNode.Attributes["id"] != null) 
         {
             if (streetAddressNode.Attributes["id"] != null) 
             {
                 streetAddressIDRef_ = streetAddressNode.Attributes["id"].Value;
                 StreetAddress ob = new StreetAddress(streetAddressNode);
                 IDManager.SetID(streetAddressIDRef_, ob);
             }
             else if (streetAddressNode.Attributes["href"] != null)
             {
                 streetAddressIDRef_ = streetAddressNode.Attributes["href"].Value;
             }
             else
             {
                 streetAddress_ = new StreetAddress(streetAddressNode);
             }
         }
         else
         {
             streetAddress_ = new StreetAddress(streetAddressNode);
         }
     }
     
 
     XmlNode cityNode = xmlNode.SelectSingleNode("city");
     
     if (cityNode != null)
     {
         if (cityNode.Attributes["href"] != null || cityNode.Attributes["id"] != null) 
         {
             if (cityNode.Attributes["id"] != null) 
             {
                 cityIDRef_ = cityNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(cityNode);
                 IDManager.SetID(cityIDRef_, ob);
             }
             else if (cityNode.Attributes["href"] != null)
             {
                 cityIDRef_ = cityNode.Attributes["href"].Value;
             }
             else
             {
                 city_ = new XsdTypeString(cityNode);
             }
         }
         else
         {
             city_ = new XsdTypeString(cityNode);
         }
     }
     
 
     XmlNode stateNode = xmlNode.SelectSingleNode("state");
     
     if (stateNode != null)
     {
         if (stateNode.Attributes["href"] != null || stateNode.Attributes["id"] != null) 
         {
             if (stateNode.Attributes["id"] != null) 
             {
                 stateIDRef_ = stateNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(stateNode);
                 IDManager.SetID(stateIDRef_, ob);
             }
             else if (stateNode.Attributes["href"] != null)
             {
                 stateIDRef_ = stateNode.Attributes["href"].Value;
             }
             else
             {
                 state_ = new XsdTypeString(stateNode);
             }
         }
         else
         {
             state_ = new XsdTypeString(stateNode);
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
     XmlNode postalCodeNode = xmlNode.SelectSingleNode("postalCode");
     
     if (postalCodeNode != null)
     {
         if (postalCodeNode.Attributes["href"] != null || postalCodeNode.Attributes["id"] != null) 
         {
             if (postalCodeNode.Attributes["id"] != null) 
             {
                 postalCodeIDRef_ = postalCodeNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(postalCodeNode);
                 IDManager.SetID(postalCodeIDRef_, ob);
             }
             else if (postalCodeNode.Attributes["href"] != null)
             {
                 postalCodeIDRef_ = postalCodeNode.Attributes["href"].Value;
             }
             else
             {
                 postalCode_ = new XsdTypeString(postalCodeNode);
             }
         }
         else
         {
             postalCode_ = new XsdTypeString(postalCodeNode);
         }
     }
     
 
 }
Ejemplo n.º 13
0
        public Person(XmlNode xmlNode)
        {
            XmlNode honorificNode = xmlNode.SelectSingleNode("honorific");

            if (honorificNode != null)
            {
                if (honorificNode.Attributes["href"] != null || honorificNode.Attributes["id"] != null)
                {
                    if (honorificNode.Attributes["id"] != null)
                    {
                        honorificIDRef_ = honorificNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(honorificNode);
                        IDManager.SetID(honorificIDRef_, ob);
                    }
                    else if (honorificNode.Attributes["href"] != null)
                    {
                        honorificIDRef_ = honorificNode.Attributes["href"].Value;
                    }
                    else
                    {
                        honorific_ = new XsdTypeNormalizedString(honorificNode);
                    }
                }
                else
                {
                    honorific_ = new XsdTypeNormalizedString(honorificNode);
                }
            }


            XmlNode firstNameNode = xmlNode.SelectSingleNode("firstName");

            if (firstNameNode != null)
            {
                if (firstNameNode.Attributes["href"] != null || firstNameNode.Attributes["id"] != null)
                {
                    if (firstNameNode.Attributes["id"] != null)
                    {
                        firstNameIDRef_ = firstNameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(firstNameNode);
                        IDManager.SetID(firstNameIDRef_, ob);
                    }
                    else if (firstNameNode.Attributes["href"] != null)
                    {
                        firstNameIDRef_ = firstNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        firstName_ = new XsdTypeNormalizedString(firstNameNode);
                    }
                }
                else
                {
                    firstName_ = new XsdTypeNormalizedString(firstNameNode);
                }
            }


            XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");

            if (middleNameNodeList != null)
            {
                this.middleName_ = new List <XsdTypeNormalizedString>();
                foreach (XmlNode item in middleNameNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            middleNameIDRef_ = item.Attributes["id"].Value;
                            middleName_.Add(new XsdTypeNormalizedString(item));
                            IDManager.SetID(middleNameIDRef_, middleName_[middleName_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            middleNameIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            middleName_.Add(new XsdTypeNormalizedString(item));
                        }
                    }
                    else
                    {
                        middleName_.Add(new XsdTypeNormalizedString(item));
                    }
                }
            }


            XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");

            if (initialNodeList != null)
            {
                this.initial_ = new List <Initial>();
                foreach (XmlNode item in initialNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            initialIDRef_ = item.Attributes["id"].Value;
                            initial_.Add(new Initial(item));
                            IDManager.SetID(initialIDRef_, initial_[initial_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            initialIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            initial_.Add(new Initial(item));
                        }
                    }
                    else
                    {
                        initial_.Add(new Initial(item));
                    }
                }
            }


            XmlNode surnameNode = xmlNode.SelectSingleNode("surname");

            if (surnameNode != null)
            {
                if (surnameNode.Attributes["href"] != null || surnameNode.Attributes["id"] != null)
                {
                    if (surnameNode.Attributes["id"] != null)
                    {
                        surnameIDRef_ = surnameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(surnameNode);
                        IDManager.SetID(surnameIDRef_, ob);
                    }
                    else if (surnameNode.Attributes["href"] != null)
                    {
                        surnameIDRef_ = surnameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        surname_ = new XsdTypeNormalizedString(surnameNode);
                    }
                }
                else
                {
                    surname_ = new XsdTypeNormalizedString(surnameNode);
                }
            }


            XmlNode suffixNode = xmlNode.SelectSingleNode("suffix");

            if (suffixNode != null)
            {
                if (suffixNode.Attributes["href"] != null || suffixNode.Attributes["id"] != null)
                {
                    if (suffixNode.Attributes["id"] != null)
                    {
                        suffixIDRef_ = suffixNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(suffixNode);
                        IDManager.SetID(suffixIDRef_, ob);
                    }
                    else if (suffixNode.Attributes["href"] != null)
                    {
                        suffixIDRef_ = suffixNode.Attributes["href"].Value;
                    }
                    else
                    {
                        suffix_ = new XsdTypeNormalizedString(suffixNode);
                    }
                }
                else
                {
                    suffix_ = new XsdTypeNormalizedString(suffixNode);
                }
            }


            XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");

            if (personIdNodeList != null)
            {
                this.personId_ = new List <PersonId>();
                foreach (XmlNode item in personIdNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            personIdIDRef_ = item.Attributes["id"].Value;
                            personId_.Add(new PersonId(item));
                            IDManager.SetID(personIdIDRef_, personId_[personId_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            personIdIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            personId_.Add(new PersonId(item));
                        }
                    }
                    else
                    {
                        personId_.Add(new PersonId(item));
                    }
                }
            }


            XmlNode businessUnitReferenceNode = xmlNode.SelectSingleNode("businessUnitReference");

            if (businessUnitReferenceNode != null)
            {
                if (businessUnitReferenceNode.Attributes["href"] != null || businessUnitReferenceNode.Attributes["id"] != null)
                {
                    if (businessUnitReferenceNode.Attributes["id"] != null)
                    {
                        businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["id"].Value;
                        BusinessUnitReference ob = new BusinessUnitReference(businessUnitReferenceNode);
                        IDManager.SetID(businessUnitReferenceIDRef_, ob);
                    }
                    else if (businessUnitReferenceNode.Attributes["href"] != null)
                    {
                        businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
                    }
                }
                else
                {
                    businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
                }
            }


            XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");

            if (contactInfoNode != null)
            {
                if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null)
                {
                    if (contactInfoNode.Attributes["id"] != null)
                    {
                        contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                        ContactInformation ob = new ContactInformation(contactInfoNode);
                        IDManager.SetID(contactInfoIDRef_, ob);
                    }
                    else if (contactInfoNode.Attributes["href"] != null)
                    {
                        contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        contactInfo_ = new ContactInformation(contactInfoNode);
                    }
                }
                else
                {
                    contactInfo_ = new ContactInformation(contactInfoNode);
                }
            }


            XmlNode countryNode = xmlNode.SelectSingleNode("country");

            if (countryNode != null)
            {
                if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null)
                {
                    if (countryNode.Attributes["id"] != null)
                    {
                        countryIDRef_ = countryNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(countryNode);
                        IDManager.SetID(countryIDRef_, ob);
                    }
                    else if (countryNode.Attributes["href"] != null)
                    {
                        countryIDRef_ = countryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        country_ = new CountryCode(countryNode);
                    }
                }
                else
                {
                    country_ = new CountryCode(countryNode);
                }
            }
        }
 public EquitySwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList mutualEarlyTerminationNodeList = xmlNode.SelectNodes("mutualEarlyTermination");
     if (mutualEarlyTerminationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in mutualEarlyTerminationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 mutualEarlyTerminationIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(mutualEarlyTerminationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 mutualEarlyTerminationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 mutualEarlyTermination = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList optionalEarlyTerminationNodeList = xmlNode.SelectNodes("optionalEarlyTermination");
     if (optionalEarlyTerminationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in optionalEarlyTerminationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 optionalEarlyTerminationIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(optionalEarlyTerminationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 optionalEarlyTerminationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 optionalEarlyTermination = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList breakFundingRecoveryNodeList = xmlNode.SelectNodes("breakFundingRecovery");
     if (breakFundingRecoveryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in breakFundingRecoveryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 breakFundingRecoveryIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(breakFundingRecoveryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 breakFundingRecoveryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 breakFundingRecovery = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList breakFeeElectionNodeList = xmlNode.SelectNodes("breakFeeElection");
     if (breakFeeElectionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in breakFeeElectionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 breakFeeElectionIDRef = item.Attributes["id"].Name;
                 FeeElectionEnum ob = FeeElectionEnum();
                 IDManager.SetID(breakFeeElectionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 breakFeeElectionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 breakFeeElection = new FeeElectionEnum(item);
             }
         }
     }
     
 
     XmlNodeList breakFeeRateNodeList = xmlNode.SelectNodes("breakFeeRate");
     if (breakFeeRateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in breakFeeRateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 breakFeeRateIDRef = item.Attributes["id"].Name;
                 NonNegativeDecimal ob = NonNegativeDecimal();
                 IDManager.SetID(breakFeeRateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 breakFeeRateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 breakFeeRate = new NonNegativeDecimal(item);
             }
         }
     }
     
 
     XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback");
     if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback");
     if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction");
     if (localJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in localJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(localJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 localJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 localJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction");
     if (relevantJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in relevantJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(relevantJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 relevantJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 relevantJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents");
     if (extraordinaryEventsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in extraordinaryEventsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 extraordinaryEventsIDRef = item.Attributes["id"].Name;
                 ExtraordinaryEvents ob = ExtraordinaryEvents();
                 IDManager.SetID(extraordinaryEventsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 extraordinaryEventsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 extraordinaryEvents = new ExtraordinaryEvents(item);
             }
         }
     }
     
 
 }
 public VarianceSwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList varianceLegNodeList = xmlNode.SelectNodes("varianceLeg");
     
     if (varianceLegNodeList != null)
     {
         this.varianceLeg_ = new List<VarianceLeg>();
         foreach (XmlNode item in varianceLegNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     varianceLegIDRef_ = item.Attributes["id"].Value;
                     varianceLeg_.Add(new VarianceLeg(item));
                     IDManager.SetID(varianceLegIDRef_, varianceLeg_[varianceLeg_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     varianceLegIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 varianceLeg_.Add(new VarianceLeg(item));
                 }
             }
             else
             {
                 varianceLeg_.Add(new VarianceLeg(item));
             }
         }
     }
     
 
     XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");
     
     if (multipleExchangeIndexAnnexFallbackNode != null)
     {
         if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
             }
             else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
             }
         }
         else
         {
             multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");
     
     if (componentSecurityIndexAnnexFallbackNode != null)
     {
         if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
             }
             else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
             }
         }
         else
         {
             componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");
     
     if (localJurisdictionNode != null)
     {
         if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) 
         {
             if (localJurisdictionNode.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(localJurisdictionNode);
                 IDManager.SetID(localJurisdictionIDRef_, ob);
             }
             else if (localJurisdictionNode.Attributes["href"] != null)
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 localJurisdiction_ = new CountryCode(localJurisdictionNode);
             }
         }
         else
         {
             localJurisdiction_ = new CountryCode(localJurisdictionNode);
         }
     }
     
 
     XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");
     
     if (relevantJurisdictionNode != null)
     {
         if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null) 
         {
             if (relevantJurisdictionNode.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(relevantJurisdictionNode);
                 IDManager.SetID(relevantJurisdictionIDRef_, ob);
             }
             else if (relevantJurisdictionNode.Attributes["href"] != null)
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
             }
         }
         else
         {
             relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
         }
     }
     
 
 }
 public Person(XmlNode xmlNode)
 {
     XmlNodeList honorificNodeList = xmlNode.SelectNodes("honorific");
     if (honorificNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in honorificNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 honorificIDRef = item.Attributes["id"].Name;
                 XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                 IDManager.SetID(honorificIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 honorificIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 honorific = new XsdTypeNormalizedString(item);
             }
         }
     }
     
 
     XmlNodeList firstNameNodeList = xmlNode.SelectNodes("firstName");
     if (firstNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in firstNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 firstNameIDRef = item.Attributes["id"].Name;
                 XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                 IDManager.SetID(firstNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 firstNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 firstName = new XsdTypeNormalizedString(item);
             }
         }
     }
     
 
     XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");
     
     foreach (XmlNode item in middleNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 middleNameIDRef = item.Attributes["id"].Name;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString();
                 ob.Add(new XsdTypeNormalizedString(item));
                 IDManager.SetID(middleNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 middleNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
             middleName.Add(new XsdTypeNormalizedString(item));
             }
         }
     }
     
 
     XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");
     
     foreach (XmlNode item in initialNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 initialIDRef = item.Attributes["id"].Name;
                 List<Initial> ob = new List<Initial>();
                 ob.Add(new Initial(item));
                 IDManager.SetID(initialIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 initialIDRef = item.Attributes["href"].Name;
             }
             else
             {
             initial.Add(new Initial(item));
             }
         }
     }
     
 
     XmlNodeList surnameNodeList = xmlNode.SelectNodes("surname");
     if (surnameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in surnameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 surnameIDRef = item.Attributes["id"].Name;
                 XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                 IDManager.SetID(surnameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 surnameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 surname = new XsdTypeNormalizedString(item);
             }
         }
     }
     
 
     XmlNodeList suffixNodeList = xmlNode.SelectNodes("suffix");
     if (suffixNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in suffixNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 suffixIDRef = item.Attributes["id"].Name;
                 XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                 IDManager.SetID(suffixIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 suffixIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 suffix = new XsdTypeNormalizedString(item);
             }
         }
     }
     
 
     XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");
     
     foreach (XmlNode item in personIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 personIdIDRef = item.Attributes["id"].Name;
                 List<PersonId> ob = new List<PersonId>();
                 ob.Add(new PersonId(item));
                 IDManager.SetID(personIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 personIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
             personId.Add(new PersonId(item));
             }
         }
     }
     
 
     XmlNodeList businessUnitReferenceNodeList = xmlNode.SelectNodes("businessUnitReference");
     if (businessUnitReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in businessUnitReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 businessUnitReferenceIDRef = item.Attributes["id"].Name;
                 BusinessUnitReference ob = BusinessUnitReference();
                 IDManager.SetID(businessUnitReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 businessUnitReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 businessUnitReference = new BusinessUnitReference(item);
             }
         }
     }
     
 
     XmlNodeList contactInfoNodeList = xmlNode.SelectNodes("contactInfo");
     if (contactInfoNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in contactInfoNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 contactInfoIDRef = item.Attributes["id"].Name;
                 ContactInformation ob = ContactInformation();
                 IDManager.SetID(contactInfoIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 contactInfoIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 contactInfo = new ContactInformation(item);
             }
         }
     }
     
 
     XmlNodeList countryNodeList = xmlNode.SelectNodes("country");
     if (countryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in countryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 countryIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(countryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 countryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 country = new CountryCode(item);
             }
         }
     }
     
 
 }
 public VarianceSwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList varianceLegNodeList = xmlNode.SelectNodes("varianceLeg");
     
     foreach (XmlNode item in varianceLegNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 varianceLegIDRef = item.Attributes["id"].Name;
                 List<VarianceLeg> ob = new List<VarianceLeg>();
                 ob.Add(new VarianceLeg(item));
                 IDManager.SetID(varianceLegIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 varianceLegIDRef = item.Attributes["href"].Name;
             }
             else
             {
             varianceLeg.Add(new VarianceLeg(item));
             }
         }
     }
     
 
     XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback");
     if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback");
     if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction");
     if (localJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in localJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(localJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 localJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 localJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
     XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction");
     if (relevantJurisdictionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in relevantJurisdictionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(relevantJurisdictionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 relevantJurisdictionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 relevantJurisdiction = new CountryCode(item);
             }
         }
     }
     
 
 }
 public DividendSwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dividendLegNode = xmlNode.SelectSingleNode("dividendLeg");
     
     if (dividendLegNode != null)
     {
         if (dividendLegNode.Attributes["href"] != null || dividendLegNode.Attributes["id"] != null) 
         {
             if (dividendLegNode.Attributes["id"] != null) 
             {
                 dividendLegIDRef_ = dividendLegNode.Attributes["id"].Value;
                 DividendLeg ob = new DividendLeg(dividendLegNode);
                 IDManager.SetID(dividendLegIDRef_, ob);
             }
             else if (dividendLegNode.Attributes["href"] != null)
             {
                 dividendLegIDRef_ = dividendLegNode.Attributes["href"].Value;
             }
             else
             {
                 dividendLeg_ = new DividendLeg(dividendLegNode);
             }
         }
         else
         {
             dividendLeg_ = new DividendLeg(dividendLegNode);
         }
     }
     
 
     XmlNode fixedLegNode = xmlNode.SelectSingleNode("fixedLeg");
     
     if (fixedLegNode != null)
     {
         if (fixedLegNode.Attributes["href"] != null || fixedLegNode.Attributes["id"] != null) 
         {
             if (fixedLegNode.Attributes["id"] != null) 
             {
                 fixedLegIDRef_ = fixedLegNode.Attributes["id"].Value;
                 FixedPaymentLeg ob = new FixedPaymentLeg(fixedLegNode);
                 IDManager.SetID(fixedLegIDRef_, ob);
             }
             else if (fixedLegNode.Attributes["href"] != null)
             {
                 fixedLegIDRef_ = fixedLegNode.Attributes["href"].Value;
             }
             else
             {
                 fixedLeg_ = new FixedPaymentLeg(fixedLegNode);
             }
         }
         else
         {
             fixedLeg_ = new FixedPaymentLeg(fixedLegNode);
         }
     }
     
 
     XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");
     
     if (multipleExchangeIndexAnnexFallbackNode != null)
     {
         if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
             }
             else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
             }
         }
         else
         {
             multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");
     
     if (componentSecurityIndexAnnexFallbackNode != null)
     {
         if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
             }
             else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
             }
         }
         else
         {
             componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");
     
     if (localJurisdictionNode != null)
     {
         if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) 
         {
             if (localJurisdictionNode.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(localJurisdictionNode);
                 IDManager.SetID(localJurisdictionIDRef_, ob);
             }
             else if (localJurisdictionNode.Attributes["href"] != null)
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 localJurisdiction_ = new CountryCode(localJurisdictionNode);
             }
         }
         else
         {
             localJurisdiction_ = new CountryCode(localJurisdictionNode);
         }
     }
     
 
     XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");
     
     if (relevantJurisdictionNode != null)
     {
         if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null) 
         {
             if (relevantJurisdictionNode.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(relevantJurisdictionNode);
                 IDManager.SetID(relevantJurisdictionIDRef_, ob);
             }
             else if (relevantJurisdictionNode.Attributes["href"] != null)
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
             }
         }
         else
         {
             relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
         }
     }
     
 
 }
 public BusinessUnit(XmlNode xmlNode)
 {
     XmlNodeList nameNodeList = xmlNode.SelectNodes("name");
     if (nameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in nameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 nameIDRef = item.Attributes["id"].Name;
                 XsdTypeString ob = XsdTypeString();
                 IDManager.SetID(nameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 nameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 name = new XsdTypeString(item);
             }
         }
     }
     
 
     XmlNodeList businessUnitIdNodeList = xmlNode.SelectNodes("businessUnitId");
     if (businessUnitIdNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in businessUnitIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 businessUnitIdIDRef = item.Attributes["id"].Name;
                 Unit ob = Unit();
                 IDManager.SetID(businessUnitIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 businessUnitIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 businessUnitId = new Unit(item);
             }
         }
     }
     
 
     XmlNodeList contactInfoNodeList = xmlNode.SelectNodes("contactInfo");
     if (contactInfoNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in contactInfoNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 contactInfoIDRef = item.Attributes["id"].Name;
                 ContactInformation ob = ContactInformation();
                 IDManager.SetID(contactInfoIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 contactInfoIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 contactInfo = new ContactInformation(item);
             }
         }
     }
     
 
     XmlNodeList countryNodeList = xmlNode.SelectNodes("country");
     if (countryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in countryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 countryIDRef = item.Attributes["id"].Name;
                 CountryCode ob = CountryCode();
                 IDManager.SetID(countryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 countryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 country = new CountryCode(item);
             }
         }
     }
     
 
 }
 public BusinessUnit(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeString(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeString(nameNode);
         }
     }
     
 
     XmlNode businessUnitIdNode = xmlNode.SelectSingleNode("businessUnitId");
     
     if (businessUnitIdNode != null)
     {
         if (businessUnitIdNode.Attributes["href"] != null || businessUnitIdNode.Attributes["id"] != null) 
         {
             if (businessUnitIdNode.Attributes["id"] != null) 
             {
                 businessUnitIdIDRef_ = businessUnitIdNode.Attributes["id"].Value;
                 Unit ob = new Unit(businessUnitIdNode);
                 IDManager.SetID(businessUnitIdIDRef_, ob);
             }
             else if (businessUnitIdNode.Attributes["href"] != null)
             {
                 businessUnitIdIDRef_ = businessUnitIdNode.Attributes["href"].Value;
             }
             else
             {
                 businessUnitId_ = new Unit(businessUnitIdNode);
             }
         }
         else
         {
             businessUnitId_ = new Unit(businessUnitIdNode);
         }
     }
     
 
     XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");
     
     if (contactInfoNode != null)
     {
         if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null) 
         {
             if (contactInfoNode.Attributes["id"] != null) 
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                 ContactInformation ob = new ContactInformation(contactInfoNode);
                 IDManager.SetID(contactInfoIDRef_, ob);
             }
             else if (contactInfoNode.Attributes["href"] != null)
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
             }
             else
             {
                 contactInfo_ = new ContactInformation(contactInfoNode);
             }
         }
         else
         {
             contactInfo_ = new ContactInformation(contactInfoNode);
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
 }
        public DividendSwapTransactionSupplement(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode dividendLegNode = xmlNode.SelectSingleNode("dividendLeg");

            if (dividendLegNode != null)
            {
                if (dividendLegNode.Attributes["href"] != null || dividendLegNode.Attributes["id"] != null)
                {
                    if (dividendLegNode.Attributes["id"] != null)
                    {
                        dividendLegIDRef_ = dividendLegNode.Attributes["id"].Value;
                        DividendLeg ob = new DividendLeg(dividendLegNode);
                        IDManager.SetID(dividendLegIDRef_, ob);
                    }
                    else if (dividendLegNode.Attributes["href"] != null)
                    {
                        dividendLegIDRef_ = dividendLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dividendLeg_ = new DividendLeg(dividendLegNode);
                    }
                }
                else
                {
                    dividendLeg_ = new DividendLeg(dividendLegNode);
                }
            }


            XmlNode fixedLegNode = xmlNode.SelectSingleNode("fixedLeg");

            if (fixedLegNode != null)
            {
                if (fixedLegNode.Attributes["href"] != null || fixedLegNode.Attributes["id"] != null)
                {
                    if (fixedLegNode.Attributes["id"] != null)
                    {
                        fixedLegIDRef_ = fixedLegNode.Attributes["id"].Value;
                        FixedPaymentLeg ob = new FixedPaymentLeg(fixedLegNode);
                        IDManager.SetID(fixedLegIDRef_, ob);
                    }
                    else if (fixedLegNode.Attributes["href"] != null)
                    {
                        fixedLegIDRef_ = fixedLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedLeg_ = new FixedPaymentLeg(fixedLegNode);
                    }
                }
                else
                {
                    fixedLeg_ = new FixedPaymentLeg(fixedLegNode);
                }
            }


            XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");

            if (multipleExchangeIndexAnnexFallbackNode != null)
            {
                if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null)
                {
                    if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null)
                    {
                        multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                        IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
                    }
                    else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
                    {
                        multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
                    }
                    else
                    {
                        multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                    }
                }
                else
                {
                    multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                }
            }


            XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");

            if (componentSecurityIndexAnnexFallbackNode != null)
            {
                if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null)
                {
                    if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null)
                    {
                        componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                        IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
                    }
                    else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
                    {
                        componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
                    }
                    else
                    {
                        componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                    }
                }
                else
                {
                    componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                }
            }


            XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");

            if (localJurisdictionNode != null)
            {
                if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null)
                {
                    if (localJurisdictionNode.Attributes["id"] != null)
                    {
                        localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(localJurisdictionNode);
                        IDManager.SetID(localJurisdictionIDRef_, ob);
                    }
                    else if (localJurisdictionNode.Attributes["href"] != null)
                    {
                        localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        localJurisdiction_ = new CountryCode(localJurisdictionNode);
                    }
                }
                else
                {
                    localJurisdiction_ = new CountryCode(localJurisdictionNode);
                }
            }


            XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");

            if (relevantJurisdictionNode != null)
            {
                if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null)
                {
                    if (relevantJurisdictionNode.Attributes["id"] != null)
                    {
                        relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(relevantJurisdictionNode);
                        IDManager.SetID(relevantJurisdictionIDRef_, ob);
                    }
                    else if (relevantJurisdictionNode.Attributes["href"] != null)
                    {
                        relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
                    }
                }
                else
                {
                    relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
                }
            }
        }