public XmlIdentity GetIdentity(string localName, string namespaceURI)
        {
            Hashtable localNames = (Hashtable)namespaces[namespaceURI];

            if (localNames == null)
            {
                XmlIdentity id = new XmlIdentity(this, localName, namespaceURI);

                localNames               = new Hashtable();
                localNames[localName]    = id;
                namespaces[namespaceURI] = localNames;

                return(id);
            }
            else
            {
                XmlIdentity id = (XmlIdentity)localNames[localName];

                if (id == null)
                {
                    id = new XmlIdentity(this, localName, namespaceURI);
                    localNames[localName] = id;
                }

                return(id);
            }
        }
Beispiel #2
0
        public XmlIdentity GetIdentity( string localName, string namespaceURI ) {
            Hashtable localNames = (Hashtable) namespaces[namespaceURI];

            if (localNames == null) {
                XmlIdentity id = new XmlIdentity( this, localName, namespaceURI );

                localNames = new Hashtable();
                localNames[localName] = id;
                namespaces[namespaceURI] = localNames;

                return id;
            }
            else {
                XmlIdentity id = (XmlIdentity) localNames[localName];

                if (id == null) {
                    id = new XmlIdentity( this, localName, namespaceURI );
                    localNames[localName] = id;
                }

                return id;
            }
        }
Beispiel #3
0
 internal XmlName(XmlIdentity identity, string prefix)
 {
     this.identity = identity;
     this.prefix   = prefix;
 }
Beispiel #4
0
 internal XmlName( XmlIdentity identity, string prefix ) {
     this.identity = identity;
     this.prefix = prefix;
 }