Forum Discussion

gurmeet_kaur's avatar
gurmeet_kaur
Occasional Contributor
13 years ago

set the #text/value of XML in stores with local variable values

I have an XML in say following format:

<x:books xmlns:x="urn:books">

 <book id="bk001">

  <author>Writer</author>

  <title>The First Book</title>

  <genre>Fiction</genre>

  <price>44.95</price>

  <pub_date>2000-10-01</pub_date>

  <review>An amazing story of nothing.</review>

 </book>

</x:books>



Now, I want to maipulate the data of the XML at runtime through vbscript. Can i do that?

Also, Can i set the #text / Values of the nodes of XML to the value already specified in Project level variable or local level variable?

1 Reply

  • gurmeet_kaur's avatar
    gurmeet_kaur
    Occasional Contributor


    some more clarification on the query:



    I have an XML in say following format in STORES of the Project in test complete:

    < x:books xmlns:x="urn:books">

    <book id="bk001">

    <author>Writer</author>

    <title>The First Book</title>

    <genre>Fiction</genre>

    <price>44.95</price>

    <pub_date>2000-10-01</pub_date>

    <review>An amazing story of nothing.</review>

    </book>

    < /x:books>



    I want to use the XML as test data for my keyword tests, which i know i can but

    Now, I want to manipulate the data of the XML at runtime through vbscript. Can i do that?

    Also, Can i set the #text / Values of the nodes of XML to the value already specified in Project level variable or local level variable?