IXml2Dex::ReadXMLFile
Microsoft DirectShow 9.0 |
IXml2Dex::ReadXMLFile
The ReadXMLFile method loads an XML project file. This method creates instances of all the objects expressed in the XML file and inserts them into the timeline, as well as applying any attributes given for the timeline, such as frame rate or default effect.
Syntax
HRESULT ReadXMLFile( IUnknown *pTimeline, BSTR XMLName );
Parameters
pTimeline
Pointer to a timeline object's IUnknown interface.
XMLName
String that specifies the name of the file to load.
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
S_OK | Success |
VFW_E_INVALID_FILE_FORMAT | Invalid file format |
Remarks
This method does not clear existing objects from the timeline before it inserts the new objects defined in the XML file. If you need to refresh an existing timeline, call IAMTimeline::ClearAllGroups first.
Requirements
Requires Internet Explorer 4.0 or later.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also