Setting that controls the storage format for the metadata generated with the XML exported from a DataWindow object using the SaveAs method or a .Data.XML expression.
DataWindow objects
Describe and Modify argument:
"DataWindow.Export.XML.SaveMetaData { = 'value ' }"
Parameter |
Description |
---|---|
value |
(exp) A string specifying a value of the Export.XML.SaveMetaData enumerated datatype |
This property must be set to specify how to store the generated metadata before you call the SaveAs method with XML! as the SaveAsType to save data as an XML document, or use the .Data.XML expression to save data as an XML string. The metadata can be saved into the exported XML document or string or into an associated file.
Note If Export.XML.MetaDataType is set to XMLNone!, the value of the Export.XML.SaveMetaData property is not used.
The Export.XML.SaveMetaData property is an enumerated datatype that can hold the following values:
Enumerated value |
Numeric value |
Meaning |
---|---|---|
MetaDataInternal! |
0 |
The metadata is saved into the generated XML document or string. To save metadata using the .Data.XML expression syntax, you must use this value. |
MetaDataExternal! |
1 |
With the SaveAs method, metadata is saved as an external file with the same name as the XML document but with the extension .xsd (for XMLSchema! type) or .dtd (for XMLDTD! type). A reference to the name of the metadata file is included in the output XML document. With .Data.XML, no metadata is generated in the XML string. |
In the Data Export category in the Properties window for the DataWindow object, select XML from the Export list and select a value from the Save Meta Data list.
[Visual Basic] dw1.Modify("DataWindow.Export.XML.SaveMetaData = MetaDataExternal!")