Create a program that parses and validates an XML document describing the output of a paint program.
In the paint program, a user can draw shapes such as a square, circle, or polygon, and add text to a drawing. A user can choose the size and color of a shape or text phrase before it is drawn. The user determines the location of the shape or text phrase. When the user chooses to save the drawing, it is stored as an XML file. Create a program that can read one of these XML files and validate it using a DTD. After the document is parsed and validated, display the images.