From RAD Studio API Documentation
Jump to: navigation, search


function GetDOMVendor(VendorDesc: string): TDOMVendor;


extern DELPHI_PACKAGE TDOMVendor* __fastcall GetDOMVendor(System::UnicodeString VendorDesc);


Type Visibility Source Unit Parent
function public
Xml.xmldom Xml.xmldom


Returns the TDOMVendor object for a specified DOM vendor.

Call GetDOMVendor to obtain the TDOMVendor object that represents a registered DOM implementation. You can then assign this return value as the DOMVendor property of TXMLDocument, or call this object's DOMImplementation method to access the IDOMImplementation interface for the DOM implementation.

VendorDesc is the descriptive string that identifies the particular DOM implementation that is desired. This is the value returned by the TDOMVendor object's Description method. The list of built-in XML vendors shows the global variables that you can pass to GetDOMVendor as VendorDesc to get one of the built-in XML implementations.

If you specify an empty string as VendorDesc, GetDOMVendor returns an instance of TDOMVendor that matches the value of DefaultDOMVendor instead. If DefaultDOMVendor is undefined, GetDOMVendor returns the first instance of TDOMVendor in the list of registered DOM vendors.

Before it returns an instance of TDOMVendor, GetDOMVendor changes the value of CurrentDOMVendor to the Description of that instance of TDOMVendor.


A call to GetDOMVendor may raise any of the following exceptions:

Exception Exception.Message Scenarios


No selected DOM Vendor

No matching DOM Vendor: "<vendor identifier>"

See Also