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 ]>
```
You might also like to view...
Which statement is true?
a. An If…Then statement cannot be nested inside a While statement. b. An If…Then statement cannot be nested inside an If…Then statement. c. A While statement cannot be nested inside an If…Then statement. d. None of the above.
Explain why an assignment of an endpoint reference to myRole of a partnerLink makes no sense.
What will be an ideal response?
Files hold folders on the computer
Indicate whether the statement is true or false
(Animation) Create an animation by displaying a series of images that represent the frames in the animation. Allow the user to specify the speed at which the images are displayed.
What will be an ideal response?