IXMLGraphBuilder Interface

 
Microsoft DirectShow 9.0

IXMLGraphBuilder Interface

The IXMLGraphBuilder interface is used to persist a DirectShow filter graph using an XML file format. To get a pointer to this interface, call CoCreateInstance with the class identifier CLSID_XMLGraphBuilder.

Generally, you should persist a filter graph only for testing purposes and not for production. There is no consistently reliable way to reload a filter graph from a file, because the user's hardware and software configurations can change between sessions. Therefore, except for testing, an application should always build a filter graph programmatically.

In addition to the methods inherited from IUnknown, the IXMLGraphBuilder interface exposes the following methods.

Method Description
BuildFromXML Loads a filter graph from an XML element.
BuildFromXMLFile Loads a filter graph from an XML file.
SaveToXML Saves a filter graph to an XML element.

Requirements

Header: Include amxmlgraphbuilder.h.

Library: None.