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

Try this XPath

/*[local-name()='assembly']/assemblyIdentity/@name

Need Your Help

How to Generate the M-Arithmetic Triangle - Java

java pascals-triangle

I'm looking to generate an M-Arithmetic triangle of order 4. It's described here: http://www.sciencedirect.com/science/article/pii/S0024379509003577?np=y

Code for clearing form fields after emailing filled-out form

vba ms-word word-vba word-2010

I have created a 2010 Word doc with form fields and a command button to email the form. I did find code to close the doc after the email sent but, I need it to not save the changes before it close...