Sample read xml, export XML to LST formated.
#include <Array.au3>
Global Const $oCOMError = ObjEvent("Autoit.Error", "_COMError")
Func _COMError()
ConsoleWrite("! COM Error: " & $oCOMError.number & @LF)
EndFunc
$oXML = ObjCreate("MSXML2.DOMDocument")
;~ $oXML.loadXML(ClipGet())
$oXML.load(@ScriptDir & "\mame.xml")
$oXML.setProperty("SelectionLanguage", "XPath")
$total_ = $oXML.selectNodes("/mame/game").length
MsgBox(0,"Total de Jogos Encontrados",$total_)
ConsoleWrite