namespaces and specific xpath

Can anyone tell me how can I get the xpath of the name attribute from this file:

<asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1">
  <assemblyIdentity name="MyName"/>
</asmv1:assembly>

I'm trying to get it for nant xmlpoke task without success.

Thanks.

Answers


This should do the trick:

//asmv1:assembly/asmv1:assemblyIdentity/@name

Need Your Help

difference between Composite Form & Special Form

clojure

In page 19 of Pratical Clojure by Luke VanderHart &amp; Stuart Sierra, Chapter 2, there is a paragraph,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.