System.Xml.XmlDocument.GetIDInfoByElement C# (CSharp) Method

GetIDInfoByElement() private method

private GetIDInfoByElement ( XmlName eleName ) : XmlName
eleName XmlName
return XmlName
        internal XmlName GetIDInfoByElement(XmlName eleName)
        {
            if (_htElementIDAttrDecl == null)
                return null;
            else
                return GetIDInfoByElement_(eleName);
        }

Usage Example

        internal void ResetParentInElementIdAttrMap(string attrLocalName, string attrNS, string oldVal, string newVal)
        {
            XmlElement parentElem = parent as XmlElement;

            Debug.Assert(parentElem != null);
            XmlDocument doc = parent.OwnerDocument;

            Debug.Assert(doc != null);
            XmlName attrname = doc.GetIDInfoByElement(parentElem.XmlName);

            if (attrname != null && attrname.LocalName == attrLocalName && attrname.NamespaceURI == attrNS)
            {
                doc.RemoveElementWithId(oldVal, parentElem); //add the element into the hashtable
                doc.AddElementWithId(newVal, parentElem);
            }
        }
All Usage Examples Of System.Xml.XmlDocument::GetIDInfoByElement