ImportXMLValue(url,tag) ImportXMLValue(url,tag,offset) - Requires version 2.4.5 and above
Parameters:
Parameter
Description
url
URL of an XML page to import from. The value of url can also be this. In this case the source of the currently loaded page will be used to import from.
tag
Defines the name of an XML tag to import. If the tag has parameter values, the parameter name can be appended to the tag. Example: tag:parameter
From version 2.4.5 and above, nested tags can be imported using the syntax: tag,subtag:parameter
offset
Specifies the record offset. This can be used to retrieve a specific record from an XML file.
Remarks:
This function imports the value of the specified XML tag or parameter.
The first value found matching the tag and parameter is imported.
If a parameter is not specified, the tag value inbetween <tag>...<tag> will be imported.
This function only imports the value it does not set it as the caption. You can do this by using the SetCaption() function on the onchange trigger.
Example:
Assume that the URL "http://www.somdomain.com/test.xml" returns the following XML data: