XMLUtil Object
Description
The object used to access and return XML objects.
Methods
CreateXML | Creates and returns an object of type XMLData. |
CreateXMLfromFile | Creates and returns an object of type XMLData. |
CreateXML Method
Description
Creates and returns an object of type XMLData. If a root name is specified, a new document is created containing the specified root tag.
Syntax
XMLUtil.CreateXML ( [RootName] )
Argument | Type | Description |
---|---|---|
RootName | String | Optional. The name of the root tag. |
The following example creates an XML object and uses it to load an XML file.
Set XMLObj = XMLUtil.CreateXML()
XMLObj.LoadFile("C:\XML\BookStore.xml")
CreateXMLfromFile Method
Description
Creates and returns an object of type XMLData.
Syntax
XMLUtil.CreateXMLFromFile( XMLFilePath)
Argument | Type | Description |
---|---|---|
XMLFilePath | String | The path of the XML file to load. This can be either a relative path or an ALM path. |
The following example creates an XML object and loads the XML file BookStore.xml into it.
Set XMLObj = XMLUtil.CreateXMLFromFile("C:\XML\BookStore.xml")
See also:
- Crypt Object
- DataTable Object
- Description Object
- DeviceReplay Object
- DotNetFactory Object
- DTParameter Object
- DTSheet Object
- Environment Object
- Extern Object
- Parameter Object
- JSON Object
- JsonUtil Object
- MercuryTimers Object (Collection)
- MercuryTimer Object
- NV Object
- OptionalStep Object
- ParallelUtil Object
- LocalParameter Object
- PasswordUtil Object
- PathFinder Object
- PDFUtil Object
- Properties Object (Collection)
- QCUtil Object
- RandomNumber Object
- Recovery Object
- Remote Connection Object
- Reporter Object
- RepositoriesCollection Object
- Repository Object
- Services Object
- Setting Object
- SystemMonitor Object
- TestArgs Object
- TextUtil Object
- UIAutomation Object
- VisualRelation Object
- VisualRelations Object
- VisualRelationsCollection Object
- WebUtil Object
- XMLUtil Object