XMLfetch

@command syntax: @XMLfetch <url> , <return error code>

Retrieves the XML message from the specified URL and populates the relevant attributes.

Possible values of the numeric attribute <return error code> are:

1 = Successful

0 = Error retrieving / parsing XML message

The format of the return XML message should be as follows :-

<?xml version="1.0" encoding="UTF-8"?>
<xpertrule>
  <item name="attribute name" value="attribute value" />
  <item name="attribute name" value="attribute value" />
  etc...
</xpertrule>

For example:

<?xml version="1.0" encoding="UTF-8"?>
<xpertrule>
  <item name="Grade" value="Director" />
  <item name="Cost" value="120" />
</xpertrule>

The URL can contain parameters for accessing dynamic XML resources.

For example:

@XMLfetch 'http://xpertrule.com/employees/saas_retrieve.php?name=john' , fetch_error