Questions tagged [xmlupdate]

15 questions
4
votes
3 answers

XmlUpdate task not updating my XML file

I have the following task in an MSBuild script:
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
2
votes
0 answers

MSBuild XmlUpdate not failing

Im using the MSBuild task XmlUpdate to update my log4net file when deploying and it works like charm :). However today I discovered a BIG problem. Problem: If I by accident specify the wrong Xpath, the script do not fail. MSBuild Task config with…
Christian Mikkelsen
  • 1,661
  • 2
  • 19
  • 44
1
vote
2 answers

How to invoke PowerShell script from command prompt that updates XML file?

Invoke PowerShell script from command prompt to update XML file nodes. Sample XML File versionname
1
vote
0 answers

Using msbuild xmlupdate to set customErrors mode

We use xmlupdate to make changes to our web.config in our test environment. This works successfully when we're just updating the value of the node. We're wanting to turn OFF customErrors in our test environment and are unsure how to do this using…
cej
  • 11
  • 1
1
vote
0 answers

Updating XML For A Same Row Multiple Times

I have an XML column that needs to be updated multiple time for the same ID. When I run the query it updates the XML only for the first matching ID. Here is the query Update Quote Set [XML].modify('replace value of…
Habib
  • 300
  • 2
  • 14
0
votes
0 answers

Delete particular rows in multiple XML files

Bunch of XML files with same no. of lines. Need to remove particular lines from all of these similar looking XML files. import xml.etree.ElementTree as ET file = ET.parse('a.xml') root = file.getroot() for elem in…
daredevil
  • 1
  • 1
0
votes
2 answers

Power shell XML node update automatically encode <> charactors

I am writing a powershell script to create a xml file which i later feed into azure pipeline. Issue is this generate an encoded output with < , > being converted, which is not in a correct xml format I understand this is related to automatic…
Heshan
  • 772
  • 8
  • 22
0
votes
2 answers

parsing XML tag with no data. getting NullPointerException

I have an xml with no data (for example the data for remark tag), so I try to update the contents of the remark tag, but I get a NullPointerException. Here is teh sample code that I use. NodeList itemCheckedNodeList =…
Sana
  • 9,895
  • 15
  • 59
  • 87
0
votes
1 answer

updating xml tables in oracle (use case - masking sensitive data after refresh )

i am trying to update xml column in oracle and getting errors which i am not able to resolve . need some help here if the data exists there and if its "USA" then only update the value or do nothing update USER.TABLE t1 set…
0
votes
1 answer

Updating two xml file using xmlstarlet

I have some issue to update an xml file with the data of a second xml file using xmlstarlet. For exemple i have a first xml file of this type :
Rflow
  • 109
  • 1
  • 10
0
votes
0 answers

How to update/edit the element's value of XML using PHP?

I've this xml file. THB 35.570000 1480703728 HKD 65.570000 1480447028 How…
Oscar
  • 1
  • 3
0
votes
0 answers

Update values on Jsp page retrieving from XML , whenever any update in the file

I am displaying values in JSP by fetching from XML. Now my requirement is to refresh just the values not the entire page whenever any change takes place in XML. any suggestion how to do it in jsp. Code i have used for displaying have updated here,…
Pushkar Sharan
  • 21
  • 1
  • 1
  • 4
0
votes
1 answer

How can I change multiple files with XMLUpdate?

I'm using XMLUpdate to update multiple config files in subdirectories. I thought I would be able to do something like this:
Piers Karsenbarg
  • 3,105
  • 5
  • 31
  • 67
0
votes
1 answer

XmlStreamWriter

I am a newbie to Qt and I want to update(add new nodes and attributes) a xml file using Qt 4 and QxmlStreamwriter, but Append open mode sets the cursor in file after the enddocument line... Is there anyway to achieve that using QXmlStreamWriter? If…
Jaws
  • 497
  • 8
  • 22
-1
votes
1 answer

compare two xml files for and update certain key only with xmlstarlet

I am trying to compare two of xml files and update only for a certain key as a new file. The issue occurs when i export a zabbix template and try to import on the other environment, status should be left as destination one. Assume that i have two…
linuxman
  • 61
  • 5