03-29-2009, 05:47 AM
In short:
- Load the XML in an XML-object by using XMLUtil
- Find the node you're looking for with ChildElementsByPath and GetRootElement()
- Updating element-values can be done with the SetValue method (but this is not what you're looking for, right?)
- I'm not sure if updating attribute-values can be done right away, but using RemoveAttribute and AddAttribute will do the trick
There's a little more to it than that, especially step 2, you can find details in QTP Help. And of course you have to understand how to use XPath.
Check out http://www.w3schools.com
- Load the XML in an XML-object by using XMLUtil
- Find the node you're looking for with ChildElementsByPath and GetRootElement()
- Updating element-values can be done with the SetValue method (but this is not what you're looking for, right?)
- I'm not sure if updating attribute-values can be done right away, but using RemoveAttribute and AddAttribute will do the trick
There's a little more to it than that, especially step 2, you can find details in QTP Help. And of course you have to understand how to use XPath.
Check out http://www.w3schools.com