Overview

One of the stated design goals of XML is to promote pass information between programs while still being human-readable. An XML document (providing it is well-formed) can be produced, parsed and analysed by one of the many XML-DOM libraries available to users regardless of source. This assessment is designed to demonstrate the use of XML tools to manipulate XML documents.

Scenario

The Greenvale Police Department (GVP) is intending to improve their crime-reporting system, and wish to design a data transfer system for this purpose. They wish for their officers to have a system for recording the details of a reported crime, such as victims, witnesses and evidence. This system must be able to store crime-specific information - items stolen in theft, building address for graffiti, and similar. In addition, these reports are going to be viewable by the court system, as part of the judiciary process.

Requirements

For this assignment, you are required to produce TWO short programs.

  • Program 1: a program that stores information on reported crimes in XML format.
  • Program 2: retrieving crime data stored by program 1 and generating a court report

Programs 1 and 2 must be able to produce/read an XML document for three distinct types of crime, i.e. three crimes with largely different data storage requirements. Both programs may be written in the language of your choice; Python or C# are recommended. The majority of marks will be awarded for proper use of the XML DOM and related libraries. Although an XML schema is not required for this project, you may find one useful; include it in the report if used.

You will submit a short report demonstrating the functionality of these programs and examining design choices made. This report should consist of an introduction, an explanation of the XML data format used and a demonstration and explanation of your two programs functionality, including examples of the XML files. It is recommended that you focus on the use of XML in the project; you are not required to detail the design of user interfaces, file IO (unless it relates to XML), etc. Please include appropriate snippets of code and example output from both programs. In addition, please upload a zipped folder with your University username as a name containing your code to Blackboard by the hand-in date for moderation.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.