Java Reference
In-Depth Information
<!ATTLIST position %coordinates;>
<!ELEMENT endpoint EMPTY>
<!ATTLIST endpoint %coordinates;>
<!ELEMENT bounds EMPTY>
<!ATTLIST bounds
%coordinates;
%dimensions;>
<!ELEMENT string (#PCDATA)>
<!ELEMENT point EMPTY>
<!ATTLIST point %coordinates;>
<!ELEMENT font EMPTY>
<!ATTLIST font
fontname CDATA #REQUIRED
fontstyle (plain|bold|italic|bold-italic) #REQUIRED
pointsize CDATA
#REQUIRED
>
<!ELEMENT line (color, position, bounds, endpoint)>
<!ATTLIST line
angle CDATA
#REQUIRED
>
<!ELEMENT rectangle (color, position, bounds)>
<!ATTLIST rectangle
angle CDATA
#REQUIRED
%dimensions;
>
<!ELEMENT circle (color, position, bounds)>
<!ATTLIST circle
angle CDATA
#REQUIRED
diameter CDATA
#REQUIRED
>
<!ELEMENT curve (color, position, bounds, point+)>
<!ATTLIST curve angle CDATA #REQUIRED>
<!ELEMENT text (color, position, bounds, font, string)>
<!ATTLIST text
angle CDATA #REQUIRED
maxascent CDATA #REQUIRED
>
You can use this DTD to represent any sketch in XML. Stash it away in your Beg Java Stuff directory
as sketcher.dtd . You will try it out later.
RULES FOR A WELL-FORMED DOCUMENT
Search WWH ::




Custom Search