public SettledEntityMatrix(XmlNode xmlNode)
 {
     XmlNode matrixSourceNode = xmlNode.SelectSingleNode("matrixSource");
     
     if (matrixSourceNode != null)
     {
         if (matrixSourceNode.Attributes["href"] != null || matrixSourceNode.Attributes["id"] != null) 
         {
             if (matrixSourceNode.Attributes["id"] != null) 
             {
                 matrixSourceIDRef_ = matrixSourceNode.Attributes["id"].Value;
                 MatrixSource ob = new MatrixSource(matrixSourceNode);
                 IDManager.SetID(matrixSourceIDRef_, ob);
             }
             else if (matrixSourceNode.Attributes["href"] != null)
             {
                 matrixSourceIDRef_ = matrixSourceNode.Attributes["href"].Value;
             }
             else
             {
                 matrixSource_ = new MatrixSource(matrixSourceNode);
             }
         }
         else
         {
             matrixSource_ = new MatrixSource(matrixSourceNode);
         }
     }
     
 
     XmlNode publicationDateNode = xmlNode.SelectSingleNode("publicationDate");
     
     if (publicationDateNode != null)
     {
         if (publicationDateNode.Attributes["href"] != null || publicationDateNode.Attributes["id"] != null) 
         {
             if (publicationDateNode.Attributes["id"] != null) 
             {
                 publicationDateIDRef_ = publicationDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(publicationDateNode);
                 IDManager.SetID(publicationDateIDRef_, ob);
             }
             else if (publicationDateNode.Attributes["href"] != null)
             {
                 publicationDateIDRef_ = publicationDateNode.Attributes["href"].Value;
             }
             else
             {
                 publicationDate_ = new XsdTypeDate(publicationDateNode);
             }
         }
         else
         {
             publicationDate_ = new XsdTypeDate(publicationDateNode);
         }
     }
     
 
 }
 public SettledEntityMatrix(XmlNode xmlNode)
 {
     XmlNodeList matrixSourceNodeList = xmlNode.SelectNodes("matrixSource");
     if (matrixSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in matrixSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 matrixSourceIDRef = item.Attributes["id"].Name;
                 MatrixSource ob = MatrixSource();
                 IDManager.SetID(matrixSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 matrixSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 matrixSource = new MatrixSource(item);
             }
         }
     }
     
 
     XmlNodeList publicationDateNodeList = xmlNode.SelectNodes("publicationDate");
     if (publicationDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in publicationDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 publicationDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(publicationDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 publicationDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 publicationDate = new XsdTypeDate(item);
             }
         }
     }
     
 
 }
        public SettledEntityMatrix(XmlNode xmlNode)
        {
            XmlNodeList matrixSourceNodeList = xmlNode.SelectNodes("matrixSource");

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

            foreach (XmlNode item in matrixSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        matrixSourceIDRef = item.Attributes["id"].Name;
                        MatrixSource ob = MatrixSource();
                        IDManager.SetID(matrixSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        matrixSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        matrixSource = new MatrixSource(item);
                    }
                }
            }


            XmlNodeList publicationDateNodeList = xmlNode.SelectNodes("publicationDate");

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

            foreach (XmlNode item in publicationDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        publicationDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(publicationDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        publicationDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        publicationDate = new XsdTypeDate(item);
                    }
                }
            }
        }
        public SettledEntityMatrix(XmlNode xmlNode)
        {
            XmlNode matrixSourceNode = xmlNode.SelectSingleNode("matrixSource");

            if (matrixSourceNode != null)
            {
                if (matrixSourceNode.Attributes["href"] != null || matrixSourceNode.Attributes["id"] != null)
                {
                    if (matrixSourceNode.Attributes["id"] != null)
                    {
                        matrixSourceIDRef_ = matrixSourceNode.Attributes["id"].Value;
                        MatrixSource ob = new MatrixSource(matrixSourceNode);
                        IDManager.SetID(matrixSourceIDRef_, ob);
                    }
                    else if (matrixSourceNode.Attributes["href"] != null)
                    {
                        matrixSourceIDRef_ = matrixSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        matrixSource_ = new MatrixSource(matrixSourceNode);
                    }
                }
                else
                {
                    matrixSource_ = new MatrixSource(matrixSourceNode);
                }
            }


            XmlNode publicationDateNode = xmlNode.SelectSingleNode("publicationDate");

            if (publicationDateNode != null)
            {
                if (publicationDateNode.Attributes["href"] != null || publicationDateNode.Attributes["id"] != null)
                {
                    if (publicationDateNode.Attributes["id"] != null)
                    {
                        publicationDateIDRef_ = publicationDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(publicationDateNode);
                        IDManager.SetID(publicationDateIDRef_, ob);
                    }
                    else if (publicationDateNode.Attributes["href"] != null)
                    {
                        publicationDateIDRef_ = publicationDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        publicationDate_ = new XsdTypeDate(publicationDateNode);
                    }
                }
                else
                {
                    publicationDate_ = new XsdTypeDate(publicationDateNode);
                }
            }
        }