public BookInformation(XmlNode xmlNode)
 : base(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;
                 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 pathInfoNode = xmlNode.SelectSingleNode("pathInfo");
     
     if (pathInfoNode != null)
     {
         if (pathInfoNode.Attributes["href"] != null || pathInfoNode.Attributes["id"] != null) 
         {
             if (pathInfoNode.Attributes["id"] != null) 
             {
                 pathInfoIDRef_ = pathInfoNode.Attributes["id"].Value;
                 PathInfo ob = new PathInfo(pathInfoNode);
                 IDManager.SetID(pathInfoIDRef_, ob);
             }
             else if (pathInfoNode.Attributes["href"] != null)
             {
                 pathInfoIDRef_ = pathInfoNode.Attributes["href"].Value;
             }
             else
             {
                 pathInfo_ = new PathInfo(pathInfoNode);
             }
         }
         else
         {
             pathInfo_ = new PathInfo(pathInfoNode);
         }
     }
     
 
     XmlNode instrumentListNode = xmlNode.SelectSingleNode("instrumentList");
     
     if (instrumentListNode != null)
     {
         if (instrumentListNode.Attributes["href"] != null || instrumentListNode.Attributes["id"] != null) 
         {
             if (instrumentListNode.Attributes["id"] != null) 
             {
                 instrumentListIDRef_ = instrumentListNode.Attributes["id"].Value;
                 InstrumentList ob = new InstrumentList(instrumentListNode);
                 IDManager.SetID(instrumentListIDRef_, ob);
             }
             else if (instrumentListNode.Attributes["href"] != null)
             {
                 instrumentListIDRef_ = instrumentListNode.Attributes["href"].Value;
             }
             else
             {
                 instrumentList_ = new InstrumentList(instrumentListNode);
             }
         }
         else
         {
             instrumentList_ = new InstrumentList(instrumentListNode);
         }
     }
     
 
 }
Exemplo n.º 2
0
        public BookInformation(XmlNode xmlNode)
            : base(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;
                        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 pathInfoNode = xmlNode.SelectSingleNode("pathInfo");

            if (pathInfoNode != null)
            {
                if (pathInfoNode.Attributes["href"] != null || pathInfoNode.Attributes["id"] != null)
                {
                    if (pathInfoNode.Attributes["id"] != null)
                    {
                        pathInfoIDRef_ = pathInfoNode.Attributes["id"].Value;
                        PathInfo ob = new PathInfo(pathInfoNode);
                        IDManager.SetID(pathInfoIDRef_, ob);
                    }
                    else if (pathInfoNode.Attributes["href"] != null)
                    {
                        pathInfoIDRef_ = pathInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        pathInfo_ = new PathInfo(pathInfoNode);
                    }
                }
                else
                {
                    pathInfo_ = new PathInfo(pathInfoNode);
                }
            }


            XmlNode instrumentListNode = xmlNode.SelectSingleNode("instrumentList");

            if (instrumentListNode != null)
            {
                if (instrumentListNode.Attributes["href"] != null || instrumentListNode.Attributes["id"] != null)
                {
                    if (instrumentListNode.Attributes["id"] != null)
                    {
                        instrumentListIDRef_ = instrumentListNode.Attributes["id"].Value;
                        InstrumentList ob = new InstrumentList(instrumentListNode);
                        IDManager.SetID(instrumentListIDRef_, ob);
                    }
                    else if (instrumentListNode.Attributes["href"] != null)
                    {
                        instrumentListIDRef_ = instrumentListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        instrumentList_ = new InstrumentList(instrumentListNode);
                    }
                }
                else
                {
                    instrumentList_ = new InstrumentList(instrumentListNode);
                }
            }
        }