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

ImportAttributes() private method

private ImportAttributes ( XmlNode fromElem, XmlNode toElem ) : void
fromElem XmlNode
toElem XmlNode
return void
        private void ImportAttributes(XmlNode fromElem, XmlNode toElem)
        {
            int cAttr = fromElem.Attributes.Count;
            for (int iAttr = 0; iAttr < cAttr; iAttr++)
            {
                if (fromElem.Attributes[iAttr].Specified)
                    toElem.Attributes.SetNamedItem(ImportNodeInternal(fromElem.Attributes[iAttr], true));
            }
        }