manraj82
manraj82

Reputation: 6325

Is it possible to update a xml file using jQuery?

Is it possible to update a xml file using jQuery? Or do i have to use server side scripting to achieve it?

Thank You

Upvotes: 1

Views: 2043

Answers (2)

dvhh
dvhh

Reputation: 4750

yes manipulate your xml as you would manipulate your DOM

var jqXML = $(xmlSource);
jqXML.find(yourNodeName).attr(attribute,value);

for example

then repost your data to the server

Upvotes: 0

Timothy S. Van Haren
Timothy S. Van Haren

Reputation: 8966

You'll need to use some kind of server-side scripting (PHP, ASP.NET, ColdFusion, etc.) to edit any files on disk.

Upvotes: 1

Related Questions