Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XPath

Status
Not open for further replies.

fadetoblack

Programmer
Jul 19, 2005
19
US
I am needing to update a client-side xml file. How do I use XPath in js to save changes?
 
What do you mean by "save changes"? You can't write to disk using javascript (if that's what you are hoping)... regardless of whether you attempt to use xpaths or not!

Javascript does not natively support xpaths - but there are several projects out there that attempt to do this.

Try google for: xpath+javascript

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
XPath is primarily a way to locate elements, and AFAIK, has not a lot to do with saving files. So the answer is probably 'no', although as Jeff suggests, a quick Google search would confirm this.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I am looking for a means to store more data than cookies can handle. If you have any suggestions for that... I'm interested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top