Finalized DTD file used by the xgen command line tool to generate a set of Java interfaces and classes that represent the document tree.

Power Java
DXML—A Second Generation XML Toolkit

Kevin Wittmer
Listing 2. Finalized DTD file used by the xgen command line tool to generate a set of Java interfaces and classes that represent the document tree.


<?xml version="1.0" encoding="UTF-8"?>

<!ELEMENT keplerian-elements (orbital-elements-description,
                              originator-name,
                              originator-location,
                              creation-date,
                              orbital-element*)>

<!ELEMENT orbital-elements-description (#PCDATA)>
<!ATTLIST orbital-elements-description format (nasa) #IMPLIED>
<!ELEMENT originator-name (#PCDATA)>
<!ELEMENT originator-location (#PCDATA)>
<!ELEMENT creation-date (#PCDATA)>
<!ELEMENT orbital-element (nasa-catalog-number,
                           element-set,
                           launch-information,
                           epoch-time,
                           inclination,
                           ra-of-node,
                           eccentricity,
                           arg-of-perigee,
                           mean-anomaly,
                           mean-motion,
                           decay-rate)>

<!ELEMENT nasa-catalog-number (#PCDATA)>
<!ELEMENT element-set (#PCDATA)>
<!ELEMENT launch-information (#PCDATA)>
<!ELEMENT epoch-time (#PCDATA)>
<!ELEMENT inclination (#PCDATA)>
<!ATTLIST inclination units (deg|rad) #IMPLIED>
<!ELEMENT ra-of-node (#PCDATA)>
<!ATTLIST ra-of-node units (deg|rad) #IMPLIED>
<!ELEMENT eccentricity (#PCDATA)>
<!ELEMENT arg-of-perigee (#PCDATA)>
<!ATTLIST arg-of-perigee units (deg|rad) #IMPLIED>
<!ELEMENT mean-anomaly (#PCDATA)>
<!ATTLIST mean-anomaly units (deg|rad) #IMPLIED>
<!ELEMENT mean-motion (#PCDATA)>
<!ATTLIST mean-motion units (rev_day) #IMPLIED>
<!ELEMENT decay-rate (#PCDATA)>
<!ATTLIST decay-rate units (rev_day_2) #IMPLIED>