Ben,
Can you repost the "Free Dashboard Example Panels"? The link expired.
If not, can you specifically post a link to download "Reading XML into Structure.grid"?
Thanks.
------------------------------
Bob Ramsay
Broadcast Engineer
Memphis-Shelby County Schools
------------------------------
Original Message:
Sent: 03-16-2021 15:28
From: Ben Gatien
Subject: XML query / DashBoard button update question
Look in the example panels found here: https://support.rossvideo.com/hc/en-us/community/posts/360065970252-Free-DashBoard-Example-Panels-for-Everyone
There is one in the "Reading and Writing Files or Directories" folder called "Reading XML into Structure.grid".
It shows how to read an XML file into a structure. It uses ogscript.parseXML to read the file. Then it uses xmlDocument.getElementsByTagName to get the elements we want. And then it loops through all the elements and uses node.getAttribute to get the different attributes of each node.
ogScript uses the javascript DOM methods. You can find documentation on them here:
https://www.w3schools.com/jsref/dom_obj_document.asp (for the document)
https://www.w3schools.com/jsref/dom_obj_all.asp (for the nodes)
#DashBoard