The XMLUtil
object is a utility that provides methods to do the following:
Create an XML wrapper
Load an existing XML file to an XML wrapper
Similar to other wrapper classes provided by UFT (such as those for Test Objects), it is convenient to simplify the usage of XML data via code. It provides an array of methods that cover the most frequently used functions of XMLDOM
. Of course, if one needs specific functions not provided by the wrapper, it is always possible to recur to the XMLDOM
or LINQ
object model (which is not covered in this book).
For example, to get a specific node by ID, we shall use the native method GetElementByID
.