作者: Titan 最近更新时间: 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 = "")
关于函数的参数和返回值, 请参阅其源码或 此文档.
The developer does not support the script anymore and locked the thread.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=17549
此函数(集)是基于 GNU GPL 许可的开源项目. 想了解许可详情, 请参见 gpl-3.0.txt
; #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