IMetabaseObject.GetXml

Syntax

GetXml: Variant;

GetXml(): object;

Description

The GetXml method returns the internal representation of the repository object as the XML.

Comments

This method returns that representation of objects in which they are stored in the system tables of the repository.

Example

Executing the example requires that the repository contains an object with the Obj1 identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    xml: IXmlDomDocument;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"Obj1").Bind;
    xml := MObj.GetXml 
As IXmlDomDocument;
    Debug.WriteLine(xml.xml);
End Sub UserProc;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    xml: IXmlDomDocument;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById[
"Obj1"].Bind();
    xml := MObj.GetXml() 
As IXmlDomDocument;
    System.Diagnostics.Debug.WriteLine(xml.xml);
End Sub;

After executing the example the XML representation of the object will be output to the development environment console.

See also:

IMetabaseObject