Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question xml saving to a file?

    hi, i'm doing this scripting where by i need to add additional xml tags through the web into the xml file. Whenever a user enter a tag or some text, and click update, I need to update the xml file directly. My teacher say to use Javascript DOM and XPath will help. But i notice there's no saving to a file function.? Must i use ASP to achieve what i want? Is there any way using javascipt DOM and Xpath so that i no need to use ASP?

    Thank you!!!!!!!!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Newcastle, England
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can amend an xml file with javascript but you cannot save it directly without using server-side functionality (or VBscript). The best you can do with javascript is to write the amended file to a new window, and then cut and paste the contents into a text editor and save it from that.

    patrick


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •