Exemplo n.º 1
0
        public void XmlNodeDerivedTypes(XmlAttribute attNode, XmlNamespaceManager nsMgr, XmlNode node2, string path)
        {
            // Fixed paths are ok
            attNode.SelectNodes("fixed");
            attNode.SelectSingleNode(FixedPath);

            attNode.SelectNodes(path);                      // Noncompliant
            attNode.SelectNodes(path, nsMgr);               // Noncompliant

            attNode.SelectSingleNode(path);                 // Noncompliant
            attNode.SelectSingleNode(path, nsMgr);          // Noncompliant

            attNode.ReplaceChild(node2, node2);
            attNode.RemoveAll();
            attNode.WriteContentTo(null);
        }