public MarketData(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode krcodeNode = xmlNode.SelectSingleNode("krcode");
     
     if (krcodeNode != null)
     {
         if (krcodeNode.Attributes["href"] != null || krcodeNode.Attributes["id"] != null) 
         {
             if (krcodeNode.Attributes["id"] != null) 
             {
                 krcodeIDRef_ = krcodeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(krcodeNode);
                 IDManager.SetID(krcodeIDRef_, ob);
             }
             else if (krcodeNode.Attributes["href"] != null)
             {
                 krcodeIDRef_ = krcodeNode.Attributes["href"].Value;
             }
             else
             {
                 krcode_ = new XsdTypeToken(krcodeNode);
             }
         }
         else
         {
             krcode_ = new XsdTypeToken(krcodeNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeToken(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeToken(nameNode);
         }
     }
     
 
     XmlNode dataValueInfoNode = xmlNode.SelectSingleNode("dataValueInfo");
     
     if (dataValueInfoNode != null)
     {
         if (dataValueInfoNode.Attributes["href"] != null || dataValueInfoNode.Attributes["id"] != null) 
         {
             if (dataValueInfoNode.Attributes["id"] != null) 
             {
                 dataValueInfoIDRef_ = dataValueInfoNode.Attributes["id"].Value;
                 DataValueInfo ob = new DataValueInfo(dataValueInfoNode);
                 IDManager.SetID(dataValueInfoIDRef_, ob);
             }
             else if (dataValueInfoNode.Attributes["href"] != null)
             {
                 dataValueInfoIDRef_ = dataValueInfoNode.Attributes["href"].Value;
             }
             else
             {
                 dataValueInfo_ = new DataValueInfo(dataValueInfoNode);
             }
         }
         else
         {
             dataValueInfo_ = new DataValueInfo(dataValueInfoNode);
         }
     }
     
 
 }
        public MarketData(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode krcodeNode = xmlNode.SelectSingleNode("krcode");

            if (krcodeNode != null)
            {
                if (krcodeNode.Attributes["href"] != null || krcodeNode.Attributes["id"] != null)
                {
                    if (krcodeNode.Attributes["id"] != null)
                    {
                        krcodeIDRef_ = krcodeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(krcodeNode);
                        IDManager.SetID(krcodeIDRef_, ob);
                    }
                    else if (krcodeNode.Attributes["href"] != null)
                    {
                        krcodeIDRef_ = krcodeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        krcode_ = new XsdTypeToken(krcodeNode);
                    }
                }
                else
                {
                    krcode_ = new XsdTypeToken(krcodeNode);
                }
            }


            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;
                        XsdTypeToken ob = new XsdTypeToken(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeToken(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeToken(nameNode);
                }
            }


            XmlNode dataValueInfoNode = xmlNode.SelectSingleNode("dataValueInfo");

            if (dataValueInfoNode != null)
            {
                if (dataValueInfoNode.Attributes["href"] != null || dataValueInfoNode.Attributes["id"] != null)
                {
                    if (dataValueInfoNode.Attributes["id"] != null)
                    {
                        dataValueInfoIDRef_ = dataValueInfoNode.Attributes["id"].Value;
                        DataValueInfo ob = new DataValueInfo(dataValueInfoNode);
                        IDManager.SetID(dataValueInfoIDRef_, ob);
                    }
                    else if (dataValueInfoNode.Attributes["href"] != null)
                    {
                        dataValueInfoIDRef_ = dataValueInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dataValueInfo_ = new DataValueInfo(dataValueInfoNode);
                    }
                }
                else
                {
                    dataValueInfo_ = new DataValueInfo(dataValueInfoNode);
                }
            }
        }