Xml.xmldom.GetDOMVendor
Delphi
function GetDOMVendor(VendorDesc: string): TDOMVendor;
C++
extern DELPHI_PACKAGE TDOMVendor* __fastcall GetDOMVendor(System::UnicodeString VendorDesc);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Xml.Xmldom.pas Xml.xmldom.hpp |
Xml.xmldom | Xml.xmldom |
Description
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
.
Exceptions
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>" |
|