
Controls OpenTextBox
Gosub GetMonitors
Gosub GetMonitor1
Gosub GetMonitor2
Stop

Variable String XML

Label GetMonitors
	Print "--- GetMonitors ---" + CRLF
	Load XML "NotebookTest.xml"
	XML = FormatXML(XML)
	XML = DecodeXML(XML, "WinSAT")
	XML = DecodeXML(XML, "SystemConfig")
	XML = DecodeXML(XML, "Monitors")
	Print XML
Return

Label GetMonitor1
	Print CRLF + "--- GetMonitor1 ---" + CRLF
	Load XML "NotebookTest.xml"
	XML = FormatXML(XML, 1)
	XML = DecodeXML(XML, "WinSAT")
	XML = DecodeXML(XML, "SystemConfig")
	XML = DecodeXML(XML, "Monitors")
	XML = DecodeXML(XML, "Monitor", 1)
	Print XML
Return

Label GetMonitor2
	Print CRLF + "--- GetMonitor2 ---" + CRLF
	Load XML "NotebookTest.xml"
	XML = FormatXML(XML, 1)
	XML = DecodeXML(XML, "WinSAT")
	XML = DecodeXML(XML, "SystemConfig")
	XML = DecodeXML(XML, "Monitors")
	XML = DecodeXML(XML, "Monitor", 2)
	Print XML
Return


'WATCH v1
'WATCH GetSeparatedString(SequenceCmd, 1)
'WATCH str1
