# sXMLget()

作者: 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 = Node 2 before neststuffnested node valueyolkstuffturkey after nestednodestuff b4 double nestedStuff inside double neststuff after double nest

    MsgBox % sXMLGet(xml, "Node2")
    MsgBox % sXMLGet(xml, "Node3")
    MsgBox % sXMLGet(xml, "tripleNest", "attr1")