Meta Data Services Programming
XML IImport Interface Overview
Extensible Markup Language (XML) can be used to import XML documents into a Microsoft® SQL Server™ 2000 Meta Data Services repository.
If importing an object that already exists, and this object is marked as versioned, the following rules apply:
- If the version flag is set, the system will freeze the original object and create a new version.
- If the version flag is not set, the system will overwrite the original object to the defined pointer.
IDL Definition
The following expandable text is the part of the Interface Definition Language (IDL) file that describes the methods on the IImport interface. In Automation, properties and methods are attached to the import object.
interface IImport : IDispatch
{
[id(1), helpstring("method ImportXML")] HRESULT ImportXML([in] IRepository *pRepository, [in] BSTR XMLFile, [in] long Flag,[out,retval] ITransientObjectCol** ppITOC);
[id(2), helpstring("method ImportXMLString")] HRESULT ImportXMLString([in] IRepository *pRepository, [in] BSTR XML, [in] long Flag,[out,retval] ITransientObjectCol** ppITOC);
};