XMLdb

@command syntax: @XMLdb <filename> , <xpath query> , <return variable> , <return error code>

Run the xpath query on the specified XML document and return the tag contents in <return variable>.

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

1 = Success

0 = Error retrieving / parsing XML message

The format of the XML file can be any valid XML document which can be interrogated via an Xpath query.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<paragraphs>
  <paragraph1>
    Hello World!
  </paragraph1>
</paragraphs>

This XML file should be uploaded to the folder dictated by the "ajax.php"..

The above sample XML document (assuming it is called text.xml) can be interrogated as follows:

@XMLdb 'test.xml','/paragraphs/paragraph1',resultStr,resultCode

The "resultStr" string variable would be assigned "Hello World!" and the "resultCode" numeric variable would be assigned 1.