hi,
i have a doubt in XML. using HTML/Java script forms, i have created a graphical interface using which the user is allowed to choose jpeg images(maps), text files etc; ie from a set of jpeg images, text files etc, the user can choose any one. i am planning to use XML for data
exchange. i plan to develop a XML file that contains the user's choices. a
JSP page on the server end interprets this XML file and extracts the data.
how can i represent the files in as XML tags:
is this representation right:
(1) <userselection id1="D:\mydocuments\us.jpg"> USA </userselection>
(or)
(2) <userselection>
<map id="1">D:\Webmapping\kerala\keralabw.jpg</map>
</userselection>
in (1), i plan to include all the images and text files as attributes whereas in (2), these are stored as elements.
can u suggest which of the two representations is better or is there a better way of using XML?
thanks in advance.