11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C:\Program<br />

Files\Adobe\FrameMaker8\UniData<br />

Parameter Description<br />

Example<br />

TARGETNAM-<br />

ESPACE:@FM:’name<br />

spaceURL’<br />

COLLAPSEMV,<br />

COLLAPSEMS<br />

The following example illustrates the XMLExecute function:<br />

UniData displays the targetnamespace attribute<br />

in the XMLSchema as<br />

targetNamespace, and uses the URL you specify<br />

to define schemaLocation. If you define the<br />

targetnamespace and other explicit namespace<br />

definitions, UniData checks if the explicitly<br />

defined namespace has the same URL and the<br />

targetnamespace. If it does, UniData uses the<br />

namespace name to qualify the schema element,<br />

and the XML document element name.<br />

Normally, when UniData processes multivalued<br />

or multi-subvalued fields, UniData adds another<br />

level of elements to produce multiple levels of<br />

nesting. You have the option of disabling this<br />

additional level by adding the COLLAPSEMV<br />

and COLLAPSE MS attributes. When these<br />

options are on, the generated XML document<br />

and the associated DTD or XML Schema have<br />

fewer levels of nesting.<br />

XmlVar The name of the variable to which to write the generated XML document<br />

[OUT]<br />

XsdVar The name of the variable in which to store the XML Schema if one is<br />

generated along with the XML document. [OUT]<br />

XMLExecute Parameters (continued)<br />

CMD="SELECT SEMESTER,COURSE_NBR FROM STUDENT;"<br />

OPTIONS := "COLLAPSEMS"<br />

OPTIONS := @FM:"HIDEROOT"<br />

OPTIONS := @FM:"root":@VM:"mystudent"<br />

OPTIONS :=@FM:"record":@VM:"myrecord"<br />

OPTIONS :=@FM:"targetnamespace":@VM:"http://www.ibm.com"<br />

OPTIONS := @FM:"elementformdefault"<br />

STATUS = XMLEXECUTE(CMD,OPTIONS,XMLVAR,XSDVAR)<br />

PRINT XSDVAR<br />

PRINT XMLVAR<br />

XMLExecute 1-1003

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

Saved successfully!

Ooh no, something went wrong!