Microsoft DirectX 9.0

Xml2Dex.WriteXML Method

The WriteXML method translates a timeline to an XML string.

Syntax

object.WriteXML(
    pTimeline As Unknown,
    pbstrXML As String
)

Parameters

pTimeline

AMTimeline object that specifies the timeline.

pbstrXML

Variable that receives the translated XML string.

Error Codes

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

Value Description
E_OUTOFMEMORY Insufficient memory.

Remarks

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
Dim sXml As String
objXmlParser.WriteXml objTimeline, sXml

See Also