assignment 03 _ on XML

The purpose of assignment 3 was to parse XML data into processing, using existing XML data of different x-positions, y-positions, widths, and heights.  This data is turned into boxes and drawn using the draw() function.  Using the Box class, we go through the data and pick out the information relevant to the boxes, and using getChildCount figure out how many boxes to make.  The println() function prints to processing the information already provided in the XML data.  The beauty of XML over traditional spreadsheet tables is that it is readable by computers and humans using code and pseudocode.  For example, a box would be called as <box id=”1″ height=”40″ width=”50″></box> and through the script, draw a 40×50 size box.  The script can be found here and screenshots below.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s