public ReferenceInformation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode referenceEntityNode = xmlNode.SelectSingleNode("referenceEntity");
     
     if (referenceEntityNode != null)
     {
         if (referenceEntityNode.Attributes["href"] != null || referenceEntityNode.Attributes["id"] != null) 
         {
             if (referenceEntityNode.Attributes["id"] != null) 
             {
                 referenceEntityIDRef_ = referenceEntityNode.Attributes["id"].Value;
                 ReferenceEntity ob = new ReferenceEntity(referenceEntityNode);
                 IDManager.SetID(referenceEntityIDRef_, ob);
             }
             else if (referenceEntityNode.Attributes["href"] != null)
             {
                 referenceEntityIDRef_ = referenceEntityNode.Attributes["href"].Value;
             }
             else
             {
                 referenceEntity_ = new ReferenceEntity(referenceEntityNode);
             }
         }
         else
         {
             referenceEntity_ = new ReferenceEntity(referenceEntityNode);
         }
     }
     
 
     XmlNode referenceObligationNode = xmlNode.SelectSingleNode("referenceObligation");
     
     if (referenceObligationNode != null)
     {
         if (referenceObligationNode.Attributes["href"] != null || referenceObligationNode.Attributes["id"] != null) 
         {
             if (referenceObligationNode.Attributes["id"] != null) 
             {
                 referenceObligationIDRef_ = referenceObligationNode.Attributes["id"].Value;
                 ReferenceObligation ob = new ReferenceObligation(referenceObligationNode);
                 IDManager.SetID(referenceObligationIDRef_, ob);
             }
             else if (referenceObligationNode.Attributes["href"] != null)
             {
                 referenceObligationIDRef_ = referenceObligationNode.Attributes["href"].Value;
             }
             else
             {
                 referenceObligation_ = new ReferenceObligation(referenceObligationNode);
             }
         }
         else
         {
             referenceObligation_ = new ReferenceObligation(referenceObligationNode);
         }
     }
     
 
     XmlNode referencePriceNode = xmlNode.SelectSingleNode("referencePrice");
     
     if (referencePriceNode != null)
     {
         if (referencePriceNode.Attributes["href"] != null || referencePriceNode.Attributes["id"] != null) 
         {
             if (referencePriceNode.Attributes["id"] != null) 
             {
                 referencePriceIDRef_ = referencePriceNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(referencePriceNode);
                 IDManager.SetID(referencePriceIDRef_, ob);
             }
             else if (referencePriceNode.Attributes["href"] != null)
             {
                 referencePriceIDRef_ = referencePriceNode.Attributes["href"].Value;
             }
             else
             {
                 referencePrice_ = new XsdTypeDouble(referencePriceNode);
             }
         }
         else
         {
             referencePrice_ = new XsdTypeDouble(referencePriceNode);
         }
     }
     
 
 }
        public ReferenceInformation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode referenceEntityNode = xmlNode.SelectSingleNode("referenceEntity");

            if (referenceEntityNode != null)
            {
                if (referenceEntityNode.Attributes["href"] != null || referenceEntityNode.Attributes["id"] != null)
                {
                    if (referenceEntityNode.Attributes["id"] != null)
                    {
                        referenceEntityIDRef_ = referenceEntityNode.Attributes["id"].Value;
                        ReferenceEntity ob = new ReferenceEntity(referenceEntityNode);
                        IDManager.SetID(referenceEntityIDRef_, ob);
                    }
                    else if (referenceEntityNode.Attributes["href"] != null)
                    {
                        referenceEntityIDRef_ = referenceEntityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceEntity_ = new ReferenceEntity(referenceEntityNode);
                    }
                }
                else
                {
                    referenceEntity_ = new ReferenceEntity(referenceEntityNode);
                }
            }


            XmlNode referenceObligationNode = xmlNode.SelectSingleNode("referenceObligation");

            if (referenceObligationNode != null)
            {
                if (referenceObligationNode.Attributes["href"] != null || referenceObligationNode.Attributes["id"] != null)
                {
                    if (referenceObligationNode.Attributes["id"] != null)
                    {
                        referenceObligationIDRef_ = referenceObligationNode.Attributes["id"].Value;
                        ReferenceObligation ob = new ReferenceObligation(referenceObligationNode);
                        IDManager.SetID(referenceObligationIDRef_, ob);
                    }
                    else if (referenceObligationNode.Attributes["href"] != null)
                    {
                        referenceObligationIDRef_ = referenceObligationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceObligation_ = new ReferenceObligation(referenceObligationNode);
                    }
                }
                else
                {
                    referenceObligation_ = new ReferenceObligation(referenceObligationNode);
                }
            }


            XmlNode referencePriceNode = xmlNode.SelectSingleNode("referencePrice");

            if (referencePriceNode != null)
            {
                if (referencePriceNode.Attributes["href"] != null || referencePriceNode.Attributes["id"] != null)
                {
                    if (referencePriceNode.Attributes["id"] != null)
                    {
                        referencePriceIDRef_ = referencePriceNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(referencePriceNode);
                        IDManager.SetID(referencePriceIDRef_, ob);
                    }
                    else if (referencePriceNode.Attributes["href"] != null)
                    {
                        referencePriceIDRef_ = referencePriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referencePrice_ = new XsdTypeDouble(referencePriceNode);
                    }
                }
                else
                {
                    referencePrice_ = new XsdTypeDouble(referencePriceNode);
                }
            }
        }