Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

Delete and Replace nodes using vbscript in XML file

$
0
0
Hi Team,

I have a XML file as below :

<?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.

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>