# sXMLget()

Author: infogulch Last Modified: 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 = "" )

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

#### Remarks

Lacks an external documentation. I added a very basic one by me.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/topic42682.html

#### License

The functions is an open source item under the infogulch`s license license. For details, please see infogulch-license.txt

#### Example

    ; #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")