public void GenerateXML(string cmd, string options);

This method uses the UniQuery LIST command or the UniData SELECT command to get an XML document from the UniData server. You can specify options separated by @FM, and option values separated by @VM. The XMLExecute options are as follows:

Description
WITHDTD Creates a DTD and binds it with the XML document. By default, UniVerse creates an XML schema. However, if you include WITHDTD in your RetrieVe or UniVerse SQL statement, UniVerse does not create an XML schema, but only produces the DTD.
ELEMENTS The XML output is in element-centric format.

‘XMLMAPPING’:

@VM:’mapping_file_ name’

Specifies the mapping file containing trans­formation rules for display. This file must exist in the &XML& directory.

‘SCHEMA’:@VM:

type’

The default schema format is ref type schema. You can use the SCHEMA attribute to define a different schema format.
HIDEMV, HIDEMS Normally, when UniVerse processes multivalued or multi-subvalued fields, UniVerse adds another level of elements to produce multiple levels of nesting. You have the option of disabling this additional level by adding the HIDEMV and HIDEMS attributes. When these options are on, the generated XML document and the associated DTD or XML schema have fewer levels of nesting.
HIDEROOT Allows you to specify to only create a segment of an XML document, for example, using the SAMPLE keyword and other conditional clauses. If you specify HIDEROOT, UniVerse only creates the record portion of the XML document, it does not create a DTD or XML schema.

‘RECORD’:@VM:

newrecords’

The default record name is FILENAME_record. The record attribute in the ROOT element changes the record name.

‘ROOT’:@VM:

newroot’

The default root element name in an XML document is ROOT. You can change the name of the root element as shown in the following example:

root=”root_element_name

TARGETNAME­SPACE:@FM:’namespaceURL

UniVerse displays the targetnamespace attribute in the XMLSchema as

targetNamespace, and uses the URL you specify to define schemaLocation. If you define the targetnamespace and other explicit namespace definitions, UniVerse checks if the explicitly defined namespace has the same URL and the targetnamespace. If it does, UniVerse uses the namespace name to qualify the schema element, and the XML document element name.

COLLAPSEMV, COLLAPSEMS Normally, when UniVerse processes multivalued or multi-subvalued fields, UniVerse adds another level of elements to produce multiple levels of nesting. You have the option of disabling this additional level by adding the COLLAPSEMV and COLLAPSE MS attributes. When these options are on, the generated XML document and the associated DTD or XML Schema have fewer levels of nesting.