Final Cut Pro 6 - Attributes of XML Elements

background image

Attributes of XML Elements

Some elements contain identifying information called attributes. In XML, an element’s
attribute looks like this:

<font color=”red”>

...

</font>

In the example above, the font element has an attribute called color, which is set to
“red”. Alternatively, you could choose to structure your XML format without attributes:

<font>

<color>red</color>
...

</font>

Just as XML tags are extensible, so are attributes. When you define the rules of your
XML file, you can allow elements to have any attributes you want. For example, in the
Final Cut Pro XML Interchange Format, every clip can have an “id” attribute so each clip
can be uniquely identified and referenced:

<clip id=”coffee house 1”>

...

</clip>
<clip id =”coffee house 2”>

...

</clip>

background image

156

Part II

Project Interchange