System.Data.XMLSchema.FEqualIdentity C# (CSharp) Method

FEqualIdentity() static private method

static private FEqualIdentity ( XmlNode node, string name, string ns ) : bool
node System.Xml.XmlNode
name string
ns string
return bool
        internal static bool FEqualIdentity(XmlNode node, string name, string ns)
        {
            if (node != null && node.LocalName == name && node.NamespaceURI == ns)
                return true;

            return false;
        }

Usage Example

 internal void LoadSchema(XmlElement schemaRoot, DataSet ds)
 {
     if (schemaRoot != null)
     {
         this._schemaRoot = schemaRoot;
         this._ds         = ds;
         this._schemaName = schemaRoot.GetAttribute("name");
         this._schemaUri  = "";
         if ((this._schemaName == null) || (this._schemaName.Length == 0))
         {
             this._schemaName = "NewDataSet";
         }
         ds.Namespace = this._schemaUri;
         for (XmlNode node = schemaRoot.FirstChild; node != null; node = node.NextSibling)
         {
             if (node is XmlElement)
             {
                 XmlElement element = (XmlElement)node;
                 if (XMLSchema.FEqualIdentity(element, "ElementType", "urn:schemas-microsoft-com:xml-data"))
                 {
                     this.HandleTable(element);
                 }
             }
         }
         this._schemaName = XmlConvert.DecodeName(this._schemaName);
         if (ds.Tables[this._schemaName] == null)
         {
             ds.DataSetName = this._schemaName;
         }
     }
 }
All Usage Examples Of System.Data.XMLSchema::FEqualIdentity