Hi,
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.
...
Hi,
Is there a way to add an attribute to an xml node (which I have the xpath of) using nant?
Tried xmlpoke but it looks like it can only update existing attributes.
thanks.
...
Given the following xml:
<rootnode>
<childnode arg="a">Content A</childnode>
<childnode arg="b">Content A</childnode>
</rootnode>
Using XMLPoke with the following XPath:
rootnode/childnode[arg='b']
The result (if the replace string is empty) is:
<rootnode>
<childnode arg="a">Content A</childnode>
<childnode arg="b"></c...
I am trying to use an xmlpoke task to update a VS Project File (which is XML). In the Project root, there are multiple PropertyGroup nodes, I am trying to select the first one. The XML looks like this
<Project>
<PropertyGroup>
</PropertyGroup>
<PropertyGroup>
</PropertyGroup>
<PropertyGroup>
</PropertyGroup>
...
Hi All
How can I change the connection string from nhibernate.config file using nant
the problem is that all examples are about changing attribute value, but nhibernate has inner text
eq:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.connection_string">Data Sourc...
Hi I am using Xpath in my Nant build script to change some config variables between development and my other environments.
I have taken the syntax from this example:
The example looks like this:
<xmlpoke
file="config01/app.config"
xpath="/configuration/appSettings/add[@key='AppName']/@value"
value="TradeMonster">
</xmlpoke...
I have a nant script that is trying to change a URL value in my web.config but Nant keeps throwing this error:
'=' is an unexpected token. The expected token is ';'. Line 1, position 80.
I traced it down to the semicolon in the URL of the nant script. The reason I have a semicolon in the URL in the first place is because the web.conf...