Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to add and save another node <message> to my XML File books.xml on "c" drive with different values.
My XML file is
XML
<book>
  <message>
    <name></name>
    <email></email>
    <location></location>
    <gtalk></gtalk>
    <comment></comment>
  </message>
</book>
Posted
Updated 6-Jan-15 8:38am
v2
Comments
E.F. Nijboer 6-Jan-15 7:34am    
No idea exactly what your trying to do but the C root of windows is protected nowadays. You need admin rights to create files there. Try creating a file in a subfolder of your drive (not the windows folder)
Silvercorer 7-Jan-15 0:29am    
What if i will keep the XML file in application folder.
ZurdoDev 6-Jan-15 14:41pm    
Browsers will likely block any attempt to do that through javascript. I think you really need to re-think what you're doing.
Silvercorer 7-Jan-15 0:30am    
What if i will keep the XML file in application folder.

1 solution

JavaScript and jQuery belong to the world of the browsers...A web page inside a browser can not access the local storage. JavaScript has no functions for IO at all...So you can not read/write any file using JavaScript or jQuery...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900