UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

DBTOXML Syntax DBTOXML(xml_document, doc_location, u2xmap_file, u2xmap_location, condition, status) Description Creates an XML document from the UniData database. Parameters The following table describes each parameter of the syntax.T Parameter Description 1-189 UniBasic Commands Reference xml_document The name of the XML document to create. doc_flag A flag defining the type of xml_document. Valid values are: ? XML.FROM.FILE - xml_document is a file name. ? XML.FROM.STRING -xml_document is the name of variable containing the XML document. u2xmap_file The name of the U2XMAP file to use to produce the XML document. u2xmap_location The location of the U2XMAP file. ? XML.FROM.FILE - u2xmap_file is a file name. ? XML.FROM.STRING - is u2xmap_file the name of variable containing the mapping rules. condition A query condition for selecting data from the UniData file, for example, WHERE SCHOOL = "CO002" Status XML.SUCCESS or XML.FAILURE. DBTOXML Parameters

Note: The XML options set previously at the session level through the XMLSETOPTIONS command or through the XMLSetOptions() API are used when you run the DBTOXML API in the current UniData session. DBTOXML 1-190

DBTOXML<br />

Syntax<br />

DBTOXML(xml_document, doc_location, u2xmap_file, u2xmap_location,<br />

condition, status)<br />

Description<br />

Creates an XML document from the UniData database.<br />

Parameters<br />

The following table describes each parameter of the syntax.T<br />

Parameter Description<br />

1-189 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

xml_document The name of the XML document to create.<br />

doc_flag A flag defining the type of xml_document. Valid values are:<br />

? XML.FROM.FILE - xml_document is a file name.<br />

? XML.FROM.STRING -xml_document is the name of<br />

variable containing the XML document.<br />

u2xmap_file The name of the U2XMAP file to use to produce the XML<br />

document.<br />

u2xmap_location The location of the U2XMAP file.<br />

? XML.FROM.FILE - u2xmap_file is a file name.<br />

? XML.FROM.STRING - is u2xmap_file the name of variable<br />

containing the mapping rules.<br />

condition A query condition for selecting data from the UniData<br />

file, for example, WHERE SCHOOL = "CO002"<br />

Status XML.SUCCESS or XML.FAILURE.<br />

DBTOXML Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!