Export.XML.SaveMetaData

Description

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.

Applies to

DataWindow objects

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Export.XML.SaveMetaData

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

Usage

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.

NoteNote 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 painter

In the Data Export tab in the Properties view for the DataWindow object, select XML from the Format to Configure list and select a value from the Save Meta Data list.

Examples

Example 1

dw1.Object.DataWindow.Export.XML.SaveMetaData = 0
dw1.Modify("DataWindow.Export.XML.SaveMetaData = &
   MetaDataExternal!")

See also

Export.XML.MetaDataType