beautypg.com

Apple Final Cut Pro 7 User Manual

Page 1634

background image

TRUE

30

An explanation of the sample code above follows.

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

element: This defines the document as an XML file. The example above shows

an element with two attributes: version and encoding.

element: Every XML document requires a Document Type Definition, or

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

element: This is the root element of every Final Cut Pro XML file. Every

document should end with a closing tag.

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

element: This is the name of the clip.

element: This is the duration of the clip, in frames.

element: This is the frame rate of the clip. The element contains a

element that determines the clip’s frame rate and an element that
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

http://developer.apple.com/appleapplications

.

Example: Creating an XML File and Importing It into Final Cut Pro

Final Cut Pro always exports verbose XML, which means that every element and subelement
is included. However, when you import XML, Final Cut Pro accepts sparse XML, which
means that you only need to provide a limited number of required elements: you can
create fairly terse XML, and Final Cut Pro fills in missing information with default
information.

To create an XML file and import it into a Final Cut Pro project

1

Open a text editing application such as TextEdit.

1634

Chapter 97

Using Final Cut Pro XML and QuickTime Metadata