IExport::GetXML Method

Meta Data Services Programming

Meta Data Services Programming

IExport::GetXML Method

This method exports the marked objects into the Extensible Markup Language (XML) string.

COM Syntax

HRESULT GetXML(
      long Flags
      BSTR XML,
);

Parameters

XML [out]

The XML output string.

Flags [in]

Flag values that can be combined in a bitwise OR operation to control the way exported objects are handled in the output. The following table describes the flags.

Enumerator Value Description
NOOBJID 1 If this bit is set, no object identifiers (OBJID) are for the objects being exported.
NOHEADER 2 If this bit is set, the XML file does not include a transfer header.
INDENTATION 4 If this bit is set, the system indents XML.
UNCLODE 8 If this bit is set, the output is Unicode.
EXPORTBASE 16 If this bit is set, the system exports only base properties and collections.

Return Value

S_OK indicates successful completion.

An error value indicates that the method failed to complete successfully. For more information, see XML Encoding Errors.

Automation Syntax

In Automation, the GetXML method has the following syntax:

   object.GetXML [,Flags]

The GetXML method syntax has the following parts.

Parameter Description
object An object declared as MSMDCXML.Export.
XML The XML output string.
Flags Flag values that can be combined in a bitwise OR operation to control the way exported objects are handled in the output. This part is declared as long.

See Also

XML Import Export