
December 17th, 2003, 05:04 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 43
Time spent in forums: < 1 sec
Reputation Power: 5
|
|
|
how to accomplish in XML?
Hi,
can any of u help me to define an XML for the following:
i have to implement an functionality as follows:
1. the functionality i implement allows an user to select an image from a list of images and some info about that image present in text files separately.
2. the user is presented with a graphical interface on a HTML page. the interface consists of two icons and a submit button.
by clicking on the first icon, the user is shown a list of images from which he has to select an image.as soon as the user selects the image, it is displayed on the page.
3. by clicking on the second icon, the user is shown a list of text files from which he has to select one file. once the user chooses a file and clicks on the submit button,
the image he had selected along with the text from the selected text file should be displayed on the screen with the text shown below the image.
now i have 5 images and 5 text(data) files. as soon as the user clicks on the submit button, an XML file should be generated. this XML file is sent to a server that extracts the image and the text, appends them and sends them back to the user to be displayed on the screen.
my part is that i have to define a XML file that is to be sent to the server. this XML should reflect the user choices ie the user may select say image 1 and text file 4. the XML file i am defining should reflect this user selection to the server. the server extracts the image 1 and text file 4 and appends them. similarly if the user selects image 3 and text file 2, the XML should represent this.
as i am new to XML, i need help in defining such an XML?
thanks in advance.
|