Hi, i have created a XML file that contains the user selections made using a HTML form. in this XML file, i have included entire file paths as elements instead of just single data values. ie my XML is as follows: <elem id="1">C:\My Documents\aa.jpg</elem> <elem id="2">C:\My Documents\bb.jpg</elem>....... actually in my HTML form, the user is given a set of jpeg images and he has to choose one among them. similarly he is allowed to choose a text file containing data from a set of text files. these are shown in XML as: <data id="1">C:\My Documents\data1.txt</data> <data id="2">C:\My Documents\data2.txt</data> now say the user has selected "aa.jpg" and "data1.txt", how can i modify my XML file so that the server side programs can extract only these two selected files. i am really finding it difficult to proceed and hope u help me out. thanks in advance.
Hi, actually the XML file that is created is a dynamic XML file that encapsulates the user's selections and this XML file is used by server-side programs on a server to interpret the user's choices and do calculations. for example a servlet extracts data from the two text file and performs operations like multiplying those values etc. the main purpose of XML in this case is to be used for data exchange. hope now u will be able to clarify my doubt.
Originally posted by Sri Sar: the XML file is created on the server using java.
Ok. And what is the question? The original "how can i modify my XML file so that the server side programs can extract only these two selected files?" seems a bit out-of-place if it's the server side program that creates the XML.