xpath [v3.13c]

Author: Titan Last Modified: 20080209


Read and write XML documents with XPath syntax.

A simple and easy set of functions for parsing XML content with xpath including save and load routines. Extremely fast and lightweight for AutoHotkey; nodes and attributes can be created and removed directly within your expressions without DOM traversal.

xpath(ByRef doc, step, set = "")
xpath_load(ByRef doc, src = "")
xpath_save(ByRef doc, src = "")

For the functions's parameters and return value, please see it's source code or the document.

Remarks

The developer does not support the script anymore and locked the thread.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=17549

License

The functions is an open source item under the GNU GPL license.
For details, please see gpl-3.0.txt

Example

; #Include xpath.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

; using variables:
x = 
xpath_load(x) ; XML content can be loaded in-place directly
xpath(x, "element/text()", "new content")
MsgBox, % xpath_save(x) ; show the new source without having to save it