By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 1,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

select all nodes with same namespace

P: 2
If this is my xml, how do I select all nodes with the same prefix? ie. I want to do a doc.selectnodes and get all nodes that are in the ns0 namespace. selectnodes doesn't seem to do it or I can't figure out what the right xpath would be. Using vb.net, vs2005.

Expand|Select|Wrap|Line Numbers
  1. <w:wordDocument .....
  2.  xmlns:ns0="http://tempuri.org/mystuff0.xsd"
  3.  xmlns:ns1="http://tempuri.org/mystuff1.xsd"
  4. ... />
  5.  
  6. <ns0:Company></ns0:Company>
  7. <ns1:State></ns1:State>
  8. <ns1:Zip></ns1:Zip>
May 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.