During the build process using Nant, how to update the xml file to add new nodes. I want to do this using existing Nant / NantContrib tasks
here is an article explaining in detail: http://weblogs.asp.net/bsimser/archive/2008/01/03/appending-nodes-in-xml-files-with-xmlpeek-and-xmlpoke-using-nant.aspx
Mostly...
xmlpeek
use xmlpoketo replace the nodes selected in step 1
xmlpoke
< xmlpeek file = "$ {configFile}" xpath = "/configuration/appSettings" property = "appSettingsNodes" / >
< property name= "newAppSettingsNodes" value = "$ {appSettingsNodes} < add key = 'my.config.key' value = '$ {someNewValue}'/& gt;" / >
< xmlpoke file = "$ {configFile}" xpath = "/configuration/appSettings" value = "$ {newAppSettingsNodes}" / >
<xmlpoke> .
<xmlpoke>
, <script>, XML .
<script>
Source: https://habr.com/ru/post/1716656/More articles:Intermediate Transmission Time - c #The best way to implement settings in my design is c #Binding an ASP.NET Model to ProfileCommon - asp.net-mvcIs it possible to reload a stream using ISynchronizeInvoke.BeginInvoke ()? - multithreadingHttpOnly and document.cookie - cookiesWhich can lead to the fact that the zip file will not be recognized in the Google App Engine if it correctly reads my local GAE sdk file - pythonHow do you display a vcard XMPP (Jabber) photo in Delphi? - xmlSaving a Base64 string to disk as a binary using Delphi 2007 - web-servicesPHP, set return email address - phpOptimizing floating point operations and conversions - c ++All Articles