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

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm 3/5/10 Examples The following example shows the format for entering the XML options in this API. 1-1010 UniBasic Commands Reference XMLSetOptions("encoding=iso-8859-1 newline=CR-LF") The next example shows the format for entering a special string as the options parameter: XMLSetOptions("defaults") Return Codes The return code indicates success or failure. The following table describes each return code. Return Code Description XML.SUCCESS Function completed successfully. XML.ERROR When the return status is XML.ERROR, XMLGetError() returns one of the following error codes: 38 Invalid XML config key: ‘key_name’ 39 Invalid XML config value: ‘value_string’ 40 Invalid XML config format: ‘name_value_string’ Note: When the return code is XML.ERROR, none of the XML parameters are changed. XMLSetOptions Return Codes

C:\Program Files\Adobe\FrameMaker8\UniData XMLTODB Syntax XMLTODB(xml_document, doc_flag, u2xmapping_rules, u2xmap_ flag, status) Description The XMLTODB function populates the UniData database from UniBasic. If you want to transform specific data, use the XMAP API. Parameters The following table describes each parameter of the syntax. Parameter Description xml_document The name of the XML document. doc_flag A flag defining the type of xml_document. Valid values are: XML.FROM.DOM - xml_document is a DOM handle. XML.FROM.FILE - xml_document is a file name. XML.FROM.STRING - xml_document is the name of variable containing the XML document u2xmapping_rules The mapping rules for the XML document. u2xmap_flag A flag indicating if the mapping file is the U2XMAP file itself or a string located within the UniBasic program. Valid values are: XMAP.FROM.FILE - the mapping rules are contained in a U2XMAP file. XMAP.FROM.STRING - u2xmap_flag is the name of the variable containing the mapping rules. Status The return status. XMAPOpen Parameters XMLTODB 1-1011

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm<br />

3/5/10<br />

Examples<br />

The following example shows the format for entering the XML options in this API.<br />

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

XMLSetOptions("encoding=iso-8859-1 newline=CR-LF")<br />

The next example shows the format for entering a special string as the options<br />

parameter:<br />

XMLSetOptions("defaults")<br />

Return Codes<br />

The return code indicates success or failure. The following table describes each<br />

return code.<br />

Return Code Description<br />

XML.SUCCESS Function completed successfully.<br />

XML.ERROR When the return status is XML.ERROR, XMLGetError() returns<br />

one of the following error codes:<br />

38 Invalid XML config key: ‘key_name’<br />

39 Invalid XML config value: ‘value_string’<br />

40 Invalid XML config format: ‘name_value_string’<br />

Note: When the return code is XML.ERROR, none of the<br />

XML parameters are changed.<br />

XMLSetOptions Return Codes

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

Saved successfully!

Ooh no, something went wrong!