作者: infogulch 最近更新时间: 20090331
simple solution get information out of xml and html
A quick and dirty solution for getting values and attributes out of the first found node in XML or HTML. It utilizes some wicked PCRE that I don't intend to fully explain for matching.
Try xpath v3 by Titan if you want a more complete solution.
sXMLget( xml, node, attr = "" )
关于函数的参数和返回值, 请参阅其源码或 此文档.
Lacks an external documentation. I added a very basic one by me.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/topic42682.html
此函数(集)是基于 infogulch`s license 许可的开源项目. 想了解许可详情, 请参见 infogulch-license.txt
; #Include sXMLget.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% xml =MsgBox % sXMLGet(xml, "Node2") MsgBox % sXMLGet(xml, "Node3") MsgBox % sXMLGet(xml, "tripleNest", "attr1") Node 2 before nest stuff nested node valueyolk stuffturkey after nestednodestuff b4 double nested Stuff inside double nest stuff after double nest