Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Writing and saving the XML file on the Client Side in javascript

Writing and saving the XML file on the Client Side in javascript

Scheduled Pinned Locked Moved Web Development
javascriptxmlhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3377391
    wrote on last edited by
    #1

    Hi everyone, I have to write an xml file which should look like the below XML file Empire Burlesque 10 Bob Dylan 10 USA Columbia 10.90 1985 Hide your heart 10 Bonnie Tyler 10 UK CBS Records 9.90 1988 Greatest Hits 10 Dolly Parton 10 USA RCA 9.90 1982 Still got the blues 20 Gary Moore 20 UK Virgin records 10.20 1990 And this file should get stored in the client location. can anyone please help it out? Thanks and Regards, Srilatha

    M 1 Reply Last reply
    0
    • M Member 3377391

      Hi everyone, I have to write an xml file which should look like the below XML file Empire Burlesque 10 Bob Dylan 10 USA Columbia 10.90 1985 Hide your heart 10 Bonnie Tyler 10 UK CBS Records 9.90 1988 Greatest Hits 10 Dolly Parton 10 USA RCA 9.90 1982 Still got the blues 20 Gary Moore 20 UK Virgin records 10.20 1990 And this file should get stored in the client location. can anyone please help it out? Thanks and Regards, Srilatha

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Well, Javascript can not write anything on your disk... What you can do is to use some activex control which can do this for you.

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      P 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Well, Javascript can not write anything on your disk... What you can do is to use some activex control which can do this for you.

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        P Offline
        P Offline
        Patrick Kilgore
        wrote on last edited by
        #3

        ActiveX controls will only work with Internet Explorer, however. I bet you could do it with java. I think saving anything to the clients side in the form of an .xml document would be tricky. You might consider using one or multiple cookies.

        M 1 Reply Last reply
        0
        • P Patrick Kilgore

          ActiveX controls will only work with Internet Explorer, however. I bet you could do it with java. I think saving anything to the clients side in the form of an .xml document would be tricky. You might consider using one or multiple cookies.

          M Offline
          M Offline
          Mark Schumann
          wrote on last edited by
          #4

          Rather than writing all that client-side code, you could let your server return an XML content-type. The browser will prompt the user as to where to save the content.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups