Ejemplo n.º 1
0
        public void FindsNodesWithCustomNamespace()
        {
            IXML doc =
                new XMLCursor(
                    "<a xmlns='urn:foo'><b>\u0433!</b></a>"
                    );


            doc = doc.WithNamespace("f", "urn:foo");

            Assert.Single(
                doc.Nodes("/f:a/f:b[.='\u0433!']")
                );

            Assert.Equal(
                "\u0433!",
                doc.Values("//f:b/text()")[0]
                );
        }