Microsoft DirectX 9.0

Xml2Dex.WriteXMLFile Method

The WriteXMLFile method translates a timeline to XML and writes the XML data to a file.

Syntax

object.WriteXMLFile(
    pTimeline As Unknown,
    FileName As String
)

Parameters

pTimeline

The AMTimeline object that specifies the timeline.

FileName

String that specifies the name of the file to write.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_INVALIDARG Invalid argument.
E_OUTOFMEMORY Insufficient memory.

Remarks

This method generates an XML file that represents all the components in the timeline.

The pTimeline parameter appears in the Microsoft® Visual Basic® Object Browser as type Unknown. In fact, however, this parameter represents an AMTimeline object.

Code Example

Dim objTimeline As New AMTimeline
' Create timeline (not shown).

Dim objXmlParser As New Xml2Dex
objXmlParser.WriteXmlFile objTimeline, "C:\XTL\Example.xtl"

See Also