0

I am trying to interate through the below xml sample using

XPathNodeIterator nodes = xPathNav.Select("z:row");

while(nodes.MoveNext())  
{
}

this gives the error "Namespace Manager or XsltContext needed"

Can anyone advise the best way to loop through the xml or point me in the right direction of where i am going wrong

thanks

S

sample xml

1 Answer 1

1

I think you need to pass a namespace manager as a second argument to Select, a bit like what is described here: http://support.microsoft.com/kb/316913 (except that it's an example with SelectNodes).

Sign up to request clarification or add additional context in comments.

2 Comments

thanks, but the namespace is the part i am having problems with
Would xmlnsManager.AddNamespace("z", "#RowsetSchema"); (assuming you built a manager) work?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.