If you make your snippet valid by adding a closing tag
at the end of your Product element then the following XPath will
work:
/Wix/[EMAIL PROTECTED]'431EB16A']/@Version
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="431EB16A" Name="Management Center" Language="1033" Version="3.0.0.100" Manufacturer="Corporation"/> or by adding </Product>
</Wix>
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kedziora, Rebecca
Sent: Thursday, October 20, 2005 12:42 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Xpath guru needed...
Anyone,
Trying to use the xmlpeek to retrieve the value of an attribute.
I am trying to get the Version:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="431EB16A" Name="Management Center" Language="1033" Version="3.0.0.100" Manufacturer="Corporation">
</Wix>
I tried several ways to use xpath and it keeps tellings me "No matching nodes found for Xpath _expression_".
Does anyone know how to get xpath to work here?
Thanks,
Rebecca