public Collateral(XmlNode xmlNode)
 {
     XmlNodeList independentAmountNodeList = xmlNode.SelectNodes("independentAmount");
     if (independentAmountNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in independentAmountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 independentAmountIDRef = item.Attributes["id"].Name;
                 IndependentAmount ob = IndependentAmount();
                 IDManager.SetID(independentAmountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 independentAmountIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 independentAmount = new IndependentAmount(item);
             }
         }
     }
     
 
 }
 public Collateral(XmlNode xmlNode)
 {
     XmlNode independentAmountNode = xmlNode.SelectSingleNode("independentAmount");
     
     if (independentAmountNode != null)
     {
         if (independentAmountNode.Attributes["href"] != null || independentAmountNode.Attributes["id"] != null) 
         {
             if (independentAmountNode.Attributes["id"] != null) 
             {
                 independentAmountIDRef_ = independentAmountNode.Attributes["id"].Value;
                 IndependentAmount ob = new IndependentAmount(independentAmountNode);
                 IDManager.SetID(independentAmountIDRef_, ob);
             }
             else if (independentAmountNode.Attributes["href"] != null)
             {
                 independentAmountIDRef_ = independentAmountNode.Attributes["href"].Value;
             }
             else
             {
                 independentAmount_ = new IndependentAmount(independentAmountNode);
             }
         }
         else
         {
             independentAmount_ = new IndependentAmount(independentAmountNode);
         }
     }
     
 
 }
Ejemplo n.º 3
0
        public Collateral(XmlNode xmlNode)
        {
            XmlNodeList independentAmountNodeList = xmlNode.SelectNodes("independentAmount");

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

            foreach (XmlNode item in independentAmountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        independentAmountIDRef = item.Attributes["id"].Name;
                        IndependentAmount ob = IndependentAmount();
                        IDManager.SetID(independentAmountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        independentAmountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        independentAmount = new IndependentAmount(item);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        public Collateral(XmlNode xmlNode)
        {
            XmlNode independentAmountNode = xmlNode.SelectSingleNode("independentAmount");

            if (independentAmountNode != null)
            {
                if (independentAmountNode.Attributes["href"] != null || independentAmountNode.Attributes["id"] != null)
                {
                    if (independentAmountNode.Attributes["id"] != null)
                    {
                        independentAmountIDRef_ = independentAmountNode.Attributes["id"].Value;
                        IndependentAmount ob = new IndependentAmount(independentAmountNode);
                        IDManager.SetID(independentAmountIDRef_, ob);
                    }
                    else if (independentAmountNode.Attributes["href"] != null)
                    {
                        independentAmountIDRef_ = independentAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        independentAmount_ = new IndependentAmount(independentAmountNode);
                    }
                }
                else
                {
                    independentAmount_ = new IndependentAmount(independentAmountNode);
                }
            }
        }