Main final cut pro xml elements – Apple Final Cut Pro 5 User Manual

Page 1519

Advertising
background image

168

Part II

Project Interchange

Main Final Cut Pro XML Elements

This section describes some of the main elements of the Final Cut Pro XML Interchange
Format. Here is an example of a simple Final Cut Pro XML interchange file. The code
below represents a Browser clip whose media file is offline.

<?xml version="2.0" encoding="UTF-8"?>
<!DOCTYPE xmeml>
<xmeml version="1">
<clip>

<name>Coffee house wide shot</name>
<duration>362</duration>
<rate>

<ntsc>TRUE</ntsc>
<timebase>30</timebase>

</rate>

</clip>
</xmeml>

An explanation of the sample code above follows.

Every Final Cut Pro XML interchange file requires the first three elements:

 <?xml> element: This defines the document as an XML file. The example above

shows an <?xml> element with two attributes: version and encoding.

 <!DOCTYPE> element: Every XML document requires a Document Type Definition, or

DTD. The DTD for a Final Cut Pro XML Interchange Format is called xmeml.

 <xmeml> element: This is the root element of every Final Cut Pro XML interchange

file. Every document should end with a closing </xmeml> tag.

The <clip> element defines a Browser clip in Final Cut Pro. The <clip> element above
contains the following elements:

 <name> element: This is the name of the clip.
 <duration> element: This is the duration of the clip.
 <rate> element: This is the frame rate of the clip. The <rate> element contains a

<timebase> element which determines the clip’s frame rate, and an <ntsc> element
which determines whether the clip frame rate is actually 29.97 fps or 30 fps.

For a complete list of Final Cut Pro XML Interchange Format elements, see the
documentation for the Final Cut Pro XML Interchange Format at developer.apple.com/
appleapplications.

Advertising