XML Command

XML — Process XML documents.

Synopsis

XML ADD xml_document_name NODE node_ref [ VALUE data_ref ]

XML CDATA xml_document_name VALUE cdata_ref

XML COMMENT xml_document_name VALUE comment_ref

XML COUNT xml_document_name NODE node_ref RETURNING ret_ref

XML LOAD xml_document_name FROM { FILE ext_file_name | XML xml_document_name }

XML MERGE xml_document_name SOURCE source_xml_document

XML MODIFY xml_document_name NODE node_ref VALUE data_ref

XML NODEPTR xml_document_name NODE { node_ref | CHILD | PARENT }

XML READ xml_document_name NODE node_ref RETURNING ret_ref

XML REMOVE xml_document_name NODE node_ref

XML SAVE xml_document_name TO FILE ext_file_name [ MODE FORMAT ]

XML TRANSFORM SOURCE { FILE | TEXT | XML } source_ref XSL { FILE | TEXT | XML } xsl_ref OUTPUT { FILE | TEXT | XML } dest_ref

XML VALIDATE xml_document_name { DTD | XMLSCHEMA } { FILE | TEXT | XML } validate_ref

Introduction

The XML command processes XML documents. Status of the executed command can be retrieved using built-in function XMLSTATUS().

Arguments

xml_document_name

Name of a XML document in memory.

source_xml_document

An XML document.

node_ref

Any data reference as well as hard coded strings containing an element name or attribute name.

nodepath_ref

Any data reference as well as hard coded string containing a path and an element or attribute. If the path is omitted, then the path will be the current path where the node pointer is pointing to.

cdata_ref

Any data reference as well as a hard coded string. This section will be placed withing CDATA tags, so the contents does not have to be valid XML.

comment_ref

Any data reference as well as a hard coded string. This section will be placed withing comment tags.

data_ref

Any data reference as well as a hard coded string or numeric value.

ret_ref

Any data reference that can have a value assigned to it.

dest_ref

Any data reference which can hold text data.

ext_file_name

Path and name of an external file.

line_no

Line number in the buffer.

Example

. . .
. . .
XML LOAD x1 FROM FILE "/tmp/importdata.xml" 
. . .
. . .

Related Commands

CLEAR