GetXml: Variant;
GetXml: Object;
The GetXml method returns the internal representation of the repository object as the XML.
This method returns that representation of objects in which they are stored in the system tables of the repository.
Executing the example requires that the repository contains an object with the Obj1 identifier.
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;
After executing the example the XML representation of the object will be output to the development environment console.
Executing the example requires that the repository contains an object with the Obj1 identifier. This example is an entry point for a .NET assembly.
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: