Write a Java application that loads an XML document that contains the DTD in Fig. 8.19 as part of its internal subset. Use the XML document’s data to draw rectangles and circles with text inside them. Attributes x and y represent the top-left coordinates. Assume a circle is bounded by an imaginary rectangle. Attributes width and height represent the rectangle’s width and height and attribute radius is the circle’s radius. Validate your XML document(s) against the DTD.
What will be an ideal response?
```
1
2
3
4
5 y CDATA #REQUIRED
6 width CDATA #REQUIRED
7 height CDATA #REQUIRED>
89
10
11 y CDATA #REQUIRED
12 radius CDATA #REQUIRED>
13 ]>
```
Computer Science & Information Technology
You might also like to view...
What protocol standard is used when utilizing an Ethernet emulation point-to-point link?
A) IEEE 802.11 B) IEEE 802.5 C) IEEE 802.3 D) ISO 4507 E) ISO 1431
Computer Science & Information Technology
What does the text describe as a major controversy surrounding software patents and algorithms?
What will be an ideal response?
Computer Science & Information Technology