format "\n\n\n REPORT - remember all indices are zero based (must be converted to 1 based in max\n\n"
format "---------------------------This is the header table info-------------------------------\n\n"
for i=1 to xmlArr[1].count do
(
format "struct2fill.nXMLSize: % \n" xmlArr[1][i].nXMLSize
format "struct2fill.nNodeTablePosition: % \n" xmlArr[1][i].nNodeTablePosition
format "struct2fill.nNodeCount: % \n" xmlArr[1][i].nNodeCount
format "struct2fill.nAttributeTablePosition: % \n" xmlArr[1][i].nAttributeTablePosition
format "struct2fill.nAttributeCount: % \n" xmlArr[1][i].nAttributeCount
format "struct2fill.nChildTablePosition: % \n" xmlArr[1][i].nChildTablePosition
format "struct2fill.nChildCount: % (Root NOT included-so these are the children for the root)\n" xmlArr[1][i].nChildCount
format "struct2fill.nStringDataPosition: % \n" xmlArr[1][i].nStringDataPosition
format "struct2fill.nStringDataSize: % \n" xmlArr[1][i].nStringDataSize
)
format "-------------------------------------------------------------------------------------\n\n\n"
format "-----------These are the children (the node with nParentIndex: -1 is the root node)-----------\n\n"
for i=1 to xmlArr[2].count do
(
tab = "\t" --for children
if xmlArr[2][i].nFirstChildIndex == 0 AND xmlArr[2][i].nParentIndex == -1 then --Root
(
tab = ""
)
-------------------------
format "%\t struct2fill.nTagStringOffset: %\n" tab xmlArr[2][i].nTagStringOffset
format "%\t struct2fill.nTagStringOffset: <%>\n" tab xmlArr[2][i].nTagString
format "%\t struct2fill.nContentStringOffset: %\n" tab xmlArr[2][i].nContentStringOffset
format "%\t struct2fill.nAttributeCount: %\n" tab xmlArr[2][i].nAttributeCount
format "%\t struct2fill.nChildCount: % (this is the count from xmlArr[3][i] <---this val counts these nodes from the starting node (see last for each of these nodes) \n" tab xmlArr[2][i].nChildCount
format "%\t struct2fill.nParentIndex: %\n" tab xmlArr[2][i].nParentIndex
format "%\t struct2fill.nFirstAttributeIndex: %\n" tab xmlArr[2][i].nFirstAttributeIndex
format "%\t struct2fill.nFirstChildIndex: % (xmlArr[3][i] <---this val, points to the starting node in these nodes (children to the root) here) \n" tab xmlArr[2][i].nFirstChildIndex
-------------------------
format "\n"
)
format "------------------------------------------------------------------------------------------\n\n\n"
format "-----------These are the childrens to the root (i.e. the root is not included here!)-----------\n\n"
for i=1 to xmlArr[3].count do
(
format "nFirstChildIndex %: \n" xmlArr[3][i]
)
format "------------------------------------------------------------------------------------------\n\n\n"
format "-------------These are the attributes (the root will reference these as well)-------------\n\n"
for i=1 to xmlArr[4].count do
(
format "nFirstAttributeIndex %: \n" xmlArr[4][i].nFirstAttributeIndex
format "nFirstChildIndex %: \n" xmlArr[4][i].nFirstChildIndex
format "\n"
)
format "--------------------------------------------------------------------------------------\n"
for i=1 to xmlArr[4].count do
(
format "nFirstAttributeIndex %: \n" xmlArr[4][i].nFirstAttributeIndex
format "\t nFirstAttribute_val %: \n" xmlArr[4][i].nFirstAttribute_val
format "\n"
format "nFirstChildIndex %: \n" xmlArr[4][i].nFirstChildIndex
format "\t nFirstChild_val %: \n" xmlArr[4][i].nFirstChild_val