开发者

Is it possible to update a xml file using jQuery?

开发者 https://www.devze.com 2023-01-20 16:14 出处:网络
Is it possible to update a xml file using jQuery? Or do i have to use serv开发者_JAVA技巧er side scripting to achieve it?

Is it possible to update a xml file using jQuery? Or do i have to use serv开发者_JAVA技巧er side scripting to achieve it?

Thank You


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号