CDF Syntax

CDF files are true XML documents. They must be well-formed, but they can't be valid because there is no current publicly available CDF DTD or schema. There is an early CDF DTD in the CDF note at the W3C, at http://www.w3.org/TR/NOTE-CDFsubmit.html, but it's out of date. However, you can see how simple it is—it's almost trivial, which suggests that you can create your own CDF DTD easily enough. (Note that several of these elements no longer exist and that others have been added.)

 <!ELEMENT LastMod EMPTY> <!ATTLIST LastMod VALUE CDATA #REQUIRED> <!ELEMENT Title EMPTY> <!ATTLIST Title VALUE CDATA #REQUIRED> <!ELEMENT Abstract EMPTY> <!ATTLIST Abstract VALUE CDATA #REQUIRED> <!ELEMENT Author EMPTY> <!ATTLIST Author VALUE CDATA #REQUIRED> ...

Get Inside XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.