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 the functions's parameters and return value, please see it's source code or the document.
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
The functions is an open source item under the infogulch`s license license.
For details, please see 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