UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
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
- Page 138 and 139: Related Commands UniBasic COMMON, C
- Page 140 and 141: UniData DELETECOMMON, STACKCOMMON -
- Page 142 and 143: CLEARFILE Syntax CLEARFILE [file.va
- Page 144 and 145: CLEARINPUT Syntax CLEARINPUT Synony
- Page 146 and 147: UniQuery GET.LIST, SELECT, SSELECT
- Page 148 and 149: CLOSE Syntax CLOSE [file.var] [ON E
- Page 150 and 151: CLOSESEQ Syntax CLOSESEQ seq.file.v
- Page 152 and 153: closeSocket Syntax closeSocket(sock
- Page 154 and 155: COL1 Syntax COL1( ) Description The
- Page 156 and 157: COMMON Syntax COMMON [/common.name/
- Page 158 and 159: 1-161 UniBasic Commands Reference
- Page 160 and 161: UniData DELETECOMMON, STACKCOMMON -
- Page 162 and 163: Related Command UniBasic EXIT 1-165
- Page 164 and 165: In the next example, the program se
- Page 166 and 167: In the next example, the program se
- Page 168 and 169: COUNT Syntax COUNT(str.expr1, str.e
- Page 170 and 171: COUNTS Syntax COUNTS(expr,str.expr)
- Page 172 and 173: createCertificate Syntax createCert
- Page 174 and 175: createCertRequest Syntax createCert
- Page 176 and 177: Parameter Description The following
- Page 178 and 179: The following table describes the a
- Page 180 and 181: createSecureRequest Syntax createSe
- Page 182 and 183: Method Description The following ta
- Page 184 and 185: Parameters The following table desc
- Page 186 and 187: DATA Syntax DATA expr1 [,expr2]...
- Page 190 and 191: DCOUNT Syntax DCOUNT(str,delim) Des
- Page 192 and 193: DEACTIVATEKEY Syntax DEACTIVATEKEY
- Page 194 and 195: STATUS Code Example The following e
- Page 196 and 197: DEFFUN Syntax DEFFUN function.name
- Page 198 and 199: The preceding program calls the fol
- Page 200 and 201: Examples The following program segm
- Page 202 and 203: Examples The following program stat
- Page 204 and 205: In the next example, the program st
- Page 206 and 207: UniData SQL SELECT - For informatio
- Page 208 and 209: Examples In the following example,
- Page 210 and 211: Parameters The following table desc
- Page 212 and 213: DIGEST Syntax DIGEST(algorithm, dat
- Page 214 and 215: DIR Syntax DIR(file.expr) Descripti
- Page 216 and 217: STATUS Codes DISABLEDEC has the fol
- Page 218 and 219: DISPLAYWIDTH Syntax DISPLAYWIDTH (s
- Page 220 and 221: DQUOTE DQUOTE is a synonym for the
- Page 222 and 223: Related Commands UniBasic PRECISION
- Page 224 and 225: ECHO Syntax ECHO [ON | OFF | expr]
- Page 226 and 227: EDADRV_CloseStmt Syntax RETCODE EDA
- Page 228 and 229: EDADRV_Connect Syntax RETCODE EDADR
- Page 230 and 231: EDADRV_Disconnect Syntax RETCODE ED
- Page 232 and 233: 1-226 UniBasic Commands Reference
- Page 234 and 235: Return Codes The following table de
- Page 236 and 237: Output Variable The following table
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