View Single Post

  #1 (permalink)  
Old 07-02-2009, 03:31 AM
ajojiraj ajojiraj is offline
Junior Member
 
Join Date: Jan 2009
Posts: 12
ajojiraj is on a distinguished road
How to modify an xml file using QTP?

Below is th sample xml content which needs to be modified -

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE cXML (View Source for full doctype...)>
- <cXML payloadID="AN01000070707-T-AN01000125534-T22-2009-06-16T534TT002JJ102:38:54-07:00-000000369-0369-0001@edi.ariba.com" timestamp="2009-06-16T00:00:54-07:00" version="1.2.018" xml:lang="en">
- <Header>
- <From>
- <Credential domain="NetworkID">
<Identity>AN01000125534-T</Identity>
</Credential>
</From>
- <To>
- <Credential domain="NetworkID">
<Identity>AN01000070707-T</Identity>
</Credential>
</To>
- <Sender>
- <Credential domain="NetworkID">
<Identity>AN01000000001</Identity>
<SharedSecret>-=DELETED=-</SharedSecret>
</Credential>
<UserAgent>EDI Gateway</UserAgent>
</Sender>
</Header>




I need to pick the value from the tag - /Header/To/Identity
and change the value and Save the file.

How should I retrieve the tag values and modify the values?
Reply With Quote
Sponsored Links