Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete and Replace nodes using vbscript in XML file
#1
Not Solved
Hi Team,

I have a XML file as below :

Code:
<?xml version="1.0" encoding="111"?>

<Fileheaderproperty>
<type>
<Car>2</Car>
<parking>no</parking>
<rent>560</rent>
</type>
<type>
<Car>3</Car>
<parking>no</parking>
<rent>750</rent>
</type>

<type>
<Car>4</Car>
<parking>Yes</parking>
<rent>600</rent>
</type>

<type>
<Car>5</Car>
<parking>no</parking>
<rent>260</rent>
</type>
<Fileheaderproperty>
Now I want to delete the node where the car parking is "Yes" and save it as a new XML file.
Can you please suggest anything on the same.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to delete prepopulate value in powerbuilder qtp-tester 1 1,701 07-04-2016, 06:43 PM
Last Post: venkatesh9032
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,589 02-09-2015, 08:47 PM
Last Post: arpan
  XML FILE COULD NOT BE PARSED tripathy.pilu23 1 7,804 04-18-2014, 06:38 AM
Last Post: kgovadav
  how to find Excel file exist or not in vbscript code sree.85 3 10,776 08-22-2013, 11:42 AM
Last Post: akhandesh
  Can any of the line in notepad file be appended/updated/modified via QTP(VBScript)? rookie_automator 1 2,416 08-22-2013, 07:13 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)