I want to select the first attribute in my XML document that has the name "valgfase"
I have tried the following expressions:
string strExpression = "//@valgfase[1]";
and
string = //@valgfase[position() = 1]
When i execute my expression, it returns ALL elements that have the attribute "valgfase".
What is the right way to do this?
I am using C# with XPathDocument and XPathNavigator