parse XML()
|
Scope/Lifetime |
Live in the profile (and not in other profiles) during the profile run/test. |
This function reads in the XML file b and creates an XML DOM object with name a.
Optionally, a ".dtd" file can be set, which is then used to create the XML object.
The function returns "true" on success.
Important note: The XML DOM object created is only available during the profile run. Afterwards it is deleted.
Parameters
|
Parameter |
Description |
|
a |
Name of the XML DOM object to be created. |
|
b |
Text of the XML file. |
|
c |
(optional) "true" to ignore DTD/XSD specifications in XML file. |
Examples
|
Parameter a |
Parameter b |
Parameter c |
Result |
|
MyXmlObject |
<content of myXML.xml> |
true |
true |
myXML.xml
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://test.de" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdw="http://tempuri.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:SoapRequest soapenv:ID="1"> <soapenv:item>0815</soapenv:item> <soapenv:item>0816</soapenv:item> </soapenv:SoapRequest> </soapenv:Body></soapenv:Envelope>