Programming Tools & Computer Science I

CSC 185 & 201, Spring 2013, Northern Virginia Community College

Homework 7: XML and build automation



Apr 3, 11:59PM

To submit:

Send an email to me at with subject CSC 185 HW7, containing your your answers attached in a zip file.

Or, put your work in your Bitbucket repository in homework/185/hw7, and email me with subject CSC 185 HW7 when you're done.


  1. Write a description of your favorite recipe using XML. To do this, decide what tags to use to describe things like ingredients, measurements, and step descriptions.

  2. Find examples of 2 other file formats that are based on XML, and describe what they're for. Show a small example, if possible. For example, SVG is a format for vector graphics, and a simple example looks like:

     <svg xmlns="" version="1.1">
       <circle cx="100" cy="50" r="50" fill="black" />
       <circle cx="100" cy="50" r="40" fill="orange" />
       <circle cx="100" cy="50" r="30" fill="black" />
       <circle cx="100" cy="50" r="20" fill="orange" />
       <circle cx="100" cy="50" r="10" fill="black" />

    And the processed file looks like:

  3. Find a previous homework assignment in which you used Java, and create an Ant build setup for it. Include a target that will run one of the programs in your assignment (see the java task type).