Is it possible to upda" /> User Id=myuser;Password=mypass;Data Source=xxxxxxx Is it possible to upda" /> User Id=myuser;Password=mypass;Data Source=xxxxxxx Is it possible to upda"/>
<?xml version="1.0" encoding="utf-8"?> <Zones> <database>User Id=myuser;Password=mypass;Data Source=xxxxxxx</database> </Zones>
Is it possible to update the node value using xmlpoke and nant? My New Value
You can make the entire value a NAnt property
<property name="db.string" value="User Id=${myID};Password=${myPW};Data Source=${MyDataSource}" />
Then use the xmlpoke command, something like:
xmlpoke
<xmlpoke file="${YourFilePath}\MyConfig.config" xpath="//Zones/database" value="${db.string}" />
Once it locates that node, it will update the value you specified in the property. NOTE: Not tested.
You can make the entire value a NAnt property
Then use the
xmlpokecommand, something like:Once it locates that node, it will update the value you specified in the property. NOTE: Not tested.