Elements for Exporting

Export an XML document from a SAS data set by using the XMLMap that was created to import the XML document.
Restriction: The engine supports exporting from one SAS data set only.

Syntax

OUTPUT
HEADING
ATTRIBUTE name="name" value="value"
TABLEREF name="name"

Elements

OUTPUT XMLV2 Only
is an optional element that contains one or more HEADING elements and one TABLEREF element for exporting a SAS data set as an XML document.
Requirement:If you specify version 1.9 or 2.1 in an XMLMap to export a SAS data set as an XML document, you must include the OUTPUT element in the XMLMap.
HEADING XMLV2 Only
is an optional element that contains one or more ATTRIBUTE elements.
ATTRIBUTE name="name" value="value" XMLV2 Only
is an optional element that contains additional file attribute information for the exported XML document, such as a schema reference or other general attributes. The specified name-value pairs are added as attributes to the first generated element in the exported XML document, such as, <NHL description="Teams of the National Hockey League">.
name="name"
specifies a name for a file attribute, such as name="description".
value="value"
specifies a value for the attribute, such as value="Teams of the National Hockey League".
TABLEREF name="name" XMLV2 Only
is an optional element that specifies the name of the table in the XMLMap to be exported.
name="name"
specifies the name of the table in the XMLMap to be exported. The name must be unique in the XMLMap definition, and the name must be a valid SAS name, which can be up to 32 characters.
Restriction:You can specify one TABLEREF element only.
Requirement:The specified name must match a TABLE element name= attribute.