Posted 14 November 2018, 1:46 am EST
Hello all.
Let me start by noting that the FlexGrid displays arrays with flat or hierarchical data.
It does not parse JSON or XML, but that can be done easily using JavaScript’s JSON object or a DOMParser (or jQuery if you like).
I looked at the sample and found there was a problem in the parsing code. I wrote another version that is a lot simpler and works OK, it’s attached here.
XML_Hierarchy_Revised.zip
This version works on modern browsers (Chrome, Edge, Firefox). It does not work correctly in IE11 because of a poor DOMParser implementation, but I hope the idea is clear enough to be useful.
I also made a very simple fiddle in case others are interested in the basic ideas we’re discussing:
https://jsfiddle.net/Wijmo5/xb7rn2sk/
I hope this information helps.