Microsoft DirectX 8.1 (C++) |
The LoadXML method loads property data expressed in Extensible Markup Language (XML).
Syntax
HRESULT LoadXML(
IUnknown *pxml
);
Parameters
pxml
[in] Pointer to the IUnknown interface of an XML element created by the Microsoft XML parser.
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
S_FALSE | No property data. |
S_OK | Success. |
E_OUTOFMEMORY | Insufficient memory. |
VFW_E_INVALID_FILE_FORMAT | Invalid format. |
Remarks
Typically, applications will not need to use this method. DES uses it internally to load properties from XTL files.
To use this method, create an IXMLDocument object and use it to parse an XML file. Then use the IXMLDocument object to retrieve IXMLElement objects. If the object has properties, you can pass the IXMLElement pointer to the LoadXML method. The method loads the properties into the property setter.
See Also