PART 1

The goal of this assignment is to demonstrate how Eclipse can be used for XML editing. Read the following articles and work through the tutorials/demos in Eclipse:

  • Belisario, Ella, Creating XML Files Tutorial,Retrieved from:
  • Ha, Trung (2006), Introduction to the XSD Editor,Retrieved from:
  • Belisario, Ella (2005), XML Schema Editor Demonstration,Retrieved from:
  • Mah, Richard (2008), XML Catalog Tutorial,Retrieved from:

Write a paper summarizing your experience. The paper should contain the impression of your experience of XML itself, the using of Eclipse for XML, and the screen shots of your efforts of working through the above tutorials. Compress all of them together as a zip

Part 2

In this assignment, you are to work through one of the following tutorial and complete all exercises. You can choose to either complete the PhoneGap Tutorial or the XML tutorial.PhoneGap is a Javascript library that allows you to convert web pages into native Mobile Applications. The alternative tutorial will focus more on the native interface used by Android to develop Mobile Apps. You must provide screen shots of your work and provide the code which your project generated in a zip file. Add to the zip file a 2 page paper which describes your work and your views of the benefit of having XML for Mobile Application Development.

Required Reading:

Tutorial:

PhoneGap Tutorial

Additional installation resources and emulator creation:

Installing the Android SDK

Create an Android Emulator

Alternative Tutorial with XML:

PART 3

This assignment aims at giving you some hands-on experience with AJAX.

Part I: Go through all the examples at the following:

  • AJAX Examples, Retrieved from:
  • Implementing Simple AJAX interaction in your Web Application using XMLHttpRequest object,

Try the examples yourself and make sure you understand the JavaScript code. Keep the screenshots of your experiences with AJAX and submit these screenshots as part of the assignments.

Part II: Write a web page and JavaScript program that uses AJAX to create a “rolling message feed”. Your program should have the following features:

  1. The web page should cycle continually through the messages in an XML file, showing a new message every five (5) seconds.
  2. The message feed should start when the page is loaded, and you should include buttons to stop and restart the feed.
  3. Every twenty (20) seconds, the page should get the XML file again in case it has been updated with any messages added or removed.
  4. When the file is reloaded, the message cycling should continue uninterrupted (i.e. it should not restart), with any new messages included in the correct place in the sequence.

Below is the content of the XML file, or you can put anything more interesting in it:

<?xml version="1.0" ?>

messages

message

content>Assignment due next week</content>

</message>

message

content>Don't forget it!</content>

</message>

message

content>Should be nearly finished!</content>

</message>

message

content>Finally done!</content>

</message>

</messages>

For this exercise, you can use either your own server or a Web accessible site where files can be uploaded and accessed online. Make sure that all the files have the right permission for online access.

You program should at least implement the first two feature requirements, if you can’t get all of them to work. Take screen shots as proof of your work, and explain your experience and observations

PART 4

This SLP assignment aims at giving you some experience in AJAX so that you can understand better AJAX's functionalities. You will try out the examples in the tutorial of:

Realtime Form Validation using AJAX,

You should change some validation rules and extend the code. After you have made the necessary code changes and tested them, write a page paper describing your experience with this exercise and how AJAX form validation differs from that in previous modules. Put this paper and your code into a zip file