Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have xml file and html file. I am able read xml file.
But I am unable to update a tag in that xml file.

Only I have to do in html and jquery or javascript client side operations only.
Posted
Updated 7-Sep-12 3:12am
v3
Comments
Kuthuparakkal 7-Sep-12 10:41am    
What do you mean by replace : Node/ChildNode replacement or just string replacement ?
Kartheek.chakrala 7-Sep-12 10:44am    
like
<name>Kartheek
to
<name>Sandeep
Bryian Tan 7-Sep-12 11:19am    
I don't think that possible. It has to be on the server side.

1 solution

try:
JavaScript
var a = "Karthik\ndef\Karthik\nxyz"
var NewA = a.replace(/Karthik/g, "Sandeep");
 
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