Click to See Complete Forum and Search --> : xml that changes on user input


fip04
02-16-2004, 12:02 AM
Hi,
can u help me out with the following:
i want to design a XML file that changes based on user input. for each input given by the user, the XML file should indicate the corresponding change. ie if the user selects a file from using a graphical interface, the XML should incorporate that file.
my main concern is to define a XML file that incorporates various data chosen by the user at run time.
any useful links on the above topic is also welcome.
thanks in advance.

Bonner
02-18-2004, 12:52 PM
You would have to use JavaScript to do this and I am no good with JavaScript.

You would have to include the JavaScript in the XSL template so when output you get the page with the JavaScript and the XML parsed.

Your best bet would be to re-post this is the JavaScript section.

paps
03-18-2004, 04:14 PM
Why dont u just write the XML file using FIleSystemObject. The idea would be to let the user make the selection, then based on the selection write the XML file using FileSystemObject as plain text file. Just that the file extension would be XML and data within would be in XML format, afterall XML files are nothing nut just plain text in special format!!!.

Whenever the user changes his selection, overwrite the file or if u want to hold the previous data just append it.

HTH

Hp108
03-19-2004, 08:19 AM
Depending on how you want to retain the data - does the collected information stay in memory until posted by the client or every piece of data is is sent back to the server and handled or a combination of both - would determine your methodology.

Serverside handling can be done using filesystemobject (as suggested above) or dom (MSXML4.0?) object with any scripting language.
What you could do is collect the data in text format in variables or post data from the client so you have access to these pieces of information on the server when the page is submitted.
On the server, if you are using MSXML object, you could use the data to create your dom. This is useful if you want to access the nodes for further processing.
In other words, there is more than one way of doing what you want.
Do not forget that you could use client side scripting if you know that the client has the necessary library...in this case - if you go with microsoft - you could create your dom on the client and process it...or use data island and send the skeleton xml, adding data with javascript and retrieving it (I am not too familiar with client side dom handling!) . I am sure microsoft has articles on that. Good luck.

Khalid Ali
03-20-2004, 10:05 AM
Originally posted by Hp108

Serverside handling can be done using filesystemobject (as suggested above) or dom (MSXML4.0?) object with any scripting language.

filesystemobject and MSHTML are strictly MS based no other scripting language other then MS ASP(or any other MS technology) will work with it.
However the suggestion of using server side scripting for this purpose is prbably the single best option there.
You can use an array of tehcnologies out there,such as MS based as mentioned above,Client side +PHP or Client + Java and such