XMLDOC [VDS6] |
|
| Top Previous Next | |
Syntax:
XMLDOC CREATE, <id>
XMLDOC CLOSE, <id>
XMLDOC LOADFILE, <id>, <filename>
XMLDOC SAVEFILE, <id>, <filename>
XMLDOC WRITE, <id>, <path>, <value>
XMLDOC WRITEATTRIBUTE, <id>, <path>, <attribute>, <value>
XMLDOC WRITECOMMENT, <id>, <path>, <value>
XMLDOC ADD, <id>, <path>, <value>
Description:
This function is used when working with XML documents. The options are:
XMLDOC CREATE,... |
Create a new XML document, with identifier <id>. Note: the @NEW() function should be used in preference. OK is true if successful. |
XMLDOC CLOSE,... |
Closes the XML document with identifier <id>. |
XMLDOC LOADFILE,... |
Loads an XML document from disk or HTTP URL <filename>. OK is false if unsuccessful. |
XMLDOC SAVEFILE,... |
Saves the XML document to disk <filename>. OK is false if unsuccessful. |
XMLDOC WRITE,... |
Writes a value to the XML document. If the specified path does not exist, it will be created if possible. If <path> contains a query and the query operation is “equals” and the path does not exist then the path will be created together with the value(s) or attribute(s) required by the query. OK is false if unsuccessful. |
XMLDOC WRITEATTRIBUTE,... |
Writes an attribute to the XML document. If the specified path does not exist, it will be created if possible. If <path> contains a query and the query operation is “equals” and the path does not exist then the path will be created together with the value(s) or attribute(s) required by the query. OK is false if unsuccessful. |
XMLDOC WRITECOMMENT,... |
Writes an XML comment to the XML document, just below the specified path. If the specified path does not exist, it will be created if possible. If <path> contains a query and the query operation is “equals” and the path does not exist then the path will be created together with the value(s) or attribute(s) required by the query. OK is false if unsuccessful. |
XMLDOC ADD,... |
Adds a path and optional value to the XML document. Even if the specified path already exists, it will be created if possible. The current node is set to the end node of the path created. OK is false if unsuccessful. |
OK:
As documented above.
Example:
See also: