public Excel_additionalOption(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_noneOptionNode = xmlNode.SelectSingleNode("excel_noneOption");
     
     if (excel_noneOptionNode != null)
     {
         if (excel_noneOptionNode.Attributes["href"] != null || excel_noneOptionNode.Attributes["id"] != null) 
         {
             if (excel_noneOptionNode.Attributes["id"] != null) 
             {
                 excel_noneOptionIDRef_ = excel_noneOptionNode.Attributes["id"].Value;
                 Excel_noneOption ob = new Excel_noneOption(excel_noneOptionNode);
                 IDManager.SetID(excel_noneOptionIDRef_, ob);
             }
             else if (excel_noneOptionNode.Attributes["href"] != null)
             {
                 excel_noneOptionIDRef_ = excel_noneOptionNode.Attributes["href"].Value;
             }
             else
             {
                 excel_noneOption_ = new Excel_noneOption(excel_noneOptionNode);
             }
         }
         else
         {
             excel_noneOption_ = new Excel_noneOption(excel_noneOptionNode);
         }
     }
     
 
     XmlNode excel_callableOptionNode = xmlNode.SelectSingleNode("excel_callableOption");
     
     if (excel_callableOptionNode != null)
     {
         if (excel_callableOptionNode.Attributes["href"] != null || excel_callableOptionNode.Attributes["id"] != null) 
         {
             if (excel_callableOptionNode.Attributes["id"] != null) 
             {
                 excel_callableOptionIDRef_ = excel_callableOptionNode.Attributes["id"].Value;
                 Excel_callableOption ob = new Excel_callableOption(excel_callableOptionNode);
                 IDManager.SetID(excel_callableOptionIDRef_, ob);
             }
             else if (excel_callableOptionNode.Attributes["href"] != null)
             {
                 excel_callableOptionIDRef_ = excel_callableOptionNode.Attributes["href"].Value;
             }
             else
             {
                 excel_callableOption_ = new Excel_callableOption(excel_callableOptionNode);
             }
         }
         else
         {
             excel_callableOption_ = new Excel_callableOption(excel_callableOptionNode);
         }
     }
     
 
     XmlNode excel_puttableOptionNode = xmlNode.SelectSingleNode("excel_puttableOption");
     
     if (excel_puttableOptionNode != null)
     {
         if (excel_puttableOptionNode.Attributes["href"] != null || excel_puttableOptionNode.Attributes["id"] != null) 
         {
             if (excel_puttableOptionNode.Attributes["id"] != null) 
             {
                 excel_puttableOptionIDRef_ = excel_puttableOptionNode.Attributes["id"].Value;
                 Excel_puttableOption ob = new Excel_puttableOption(excel_puttableOptionNode);
                 IDManager.SetID(excel_puttableOptionIDRef_, ob);
             }
             else if (excel_puttableOptionNode.Attributes["href"] != null)
             {
                 excel_puttableOptionIDRef_ = excel_puttableOptionNode.Attributes["href"].Value;
             }
             else
             {
                 excel_puttableOption_ = new Excel_puttableOption(excel_puttableOptionNode);
             }
         }
         else
         {
             excel_puttableOption_ = new Excel_puttableOption(excel_puttableOptionNode);
         }
     }
     
 
 }
Ejemplo n.º 2
0
        public Excel_additionalOption(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_noneOptionNode = xmlNode.SelectSingleNode("excel_noneOption");

            if (excel_noneOptionNode != null)
            {
                if (excel_noneOptionNode.Attributes["href"] != null || excel_noneOptionNode.Attributes["id"] != null)
                {
                    if (excel_noneOptionNode.Attributes["id"] != null)
                    {
                        excel_noneOptionIDRef_ = excel_noneOptionNode.Attributes["id"].Value;
                        Excel_noneOption ob = new Excel_noneOption(excel_noneOptionNode);
                        IDManager.SetID(excel_noneOptionIDRef_, ob);
                    }
                    else if (excel_noneOptionNode.Attributes["href"] != null)
                    {
                        excel_noneOptionIDRef_ = excel_noneOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_noneOption_ = new Excel_noneOption(excel_noneOptionNode);
                    }
                }
                else
                {
                    excel_noneOption_ = new Excel_noneOption(excel_noneOptionNode);
                }
            }


            XmlNode excel_callableOptionNode = xmlNode.SelectSingleNode("excel_callableOption");

            if (excel_callableOptionNode != null)
            {
                if (excel_callableOptionNode.Attributes["href"] != null || excel_callableOptionNode.Attributes["id"] != null)
                {
                    if (excel_callableOptionNode.Attributes["id"] != null)
                    {
                        excel_callableOptionIDRef_ = excel_callableOptionNode.Attributes["id"].Value;
                        Excel_callableOption ob = new Excel_callableOption(excel_callableOptionNode);
                        IDManager.SetID(excel_callableOptionIDRef_, ob);
                    }
                    else if (excel_callableOptionNode.Attributes["href"] != null)
                    {
                        excel_callableOptionIDRef_ = excel_callableOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_callableOption_ = new Excel_callableOption(excel_callableOptionNode);
                    }
                }
                else
                {
                    excel_callableOption_ = new Excel_callableOption(excel_callableOptionNode);
                }
            }


            XmlNode excel_puttableOptionNode = xmlNode.SelectSingleNode("excel_puttableOption");

            if (excel_puttableOptionNode != null)
            {
                if (excel_puttableOptionNode.Attributes["href"] != null || excel_puttableOptionNode.Attributes["id"] != null)
                {
                    if (excel_puttableOptionNode.Attributes["id"] != null)
                    {
                        excel_puttableOptionIDRef_ = excel_puttableOptionNode.Attributes["id"].Value;
                        Excel_puttableOption ob = new Excel_puttableOption(excel_puttableOptionNode);
                        IDManager.SetID(excel_puttableOptionIDRef_, ob);
                    }
                    else if (excel_puttableOptionNode.Attributes["href"] != null)
                    {
                        excel_puttableOptionIDRef_ = excel_puttableOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_puttableOption_ = new Excel_puttableOption(excel_puttableOptionNode);
                    }
                }
                else
                {
                    excel_puttableOption_ = new Excel_puttableOption(excel_puttableOptionNode);
                }
            }
        }