John A Grandy wrote:
XPathNodeIterator.Current.GetAttribute(localName As String, namespaceURI As
String)
i believe that localName should be set equal to the name of the attribute.
but what should namespaceURI be set equal to ?
To namespace URI if the attribute belongs to a namespace. E.g.
<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="foo.xsd">bar</foo>
Here to get xsi:noNamespaceSchemaLocation attribute value you can use
string schema = ni.Current.GetAttribute("noNamespaceSchemaLocation ",
"http://www.w3.org/2001/XMLSchema-instance");
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com