Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtp script for updating values in xml file
#1
Not Solved
i have xml file with some text inside the file. i need a script in such a way..qtp should open this xml file in notepad format...and it should be able to edit the existing values in the file and again it has to save that file in xml format

XML code mentioned below.....I have to update the TimeStamp, Source ID and RxNum everytime when i run the script and these values should be updated into excel file...

Please help me.


Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header/>
    <Body>
        <ns1:MsgHeader DestinationID="RxC" MsgID="23153333425" MsgName="POSFinalizationReq" SourceID="00020" TimeStamp="2012-02-24T12:03:20.930-05:00" Version="1" xmlns:ns1="http://www.cvs.com/rxconnect"/>
            <ns2:RxID PartialFillSeqNum="0" RxNum="0841936" RxTxnNum="0"/>
            <ns2:RxSoldInfo AmountCollected="10" PatientPaySource="T" TimeStamp="2012-03-03T12:03:20.930-05:00" UserID="123"/>
        </ns2:POSFinalizationReq>
    </Body>
</Envelope>
Reply


Messages In This Thread
qtp script for updating values in xml file - by automation2012 - 11-30-2012, 03:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,672 07-19-2017, 04:58 PM
Last Post: smiley
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,210 06-29-2016, 02:19 PM
Last Post: Ankesh
  Updating Shared repository vinod_3466 3 4,281 06-29-2016, 02:16 PM
Last Post: Ankesh
  Updating the web table Ananth1982 0 1,788 03-04-2015, 02:31 AM
Last Post: Ananth1982
  Attaching config file in driver script?? ruchi 3 4,001 01-24-2014, 12:32 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)