Mine
public text v1 · immutableFunction DumpStructure(&$structure,&$positions,$path)
{
echo "[".$positions[$path]["Line"].",".$positions[$path]["Column"].",".$positions[$path]["Byte"]."]";
if(GetType($structure[$path])=="array")
{
echo "<".$structure[$path]["Tag"].">";
for($element=0;$element<$structure[$path]["Elements"];$element++)
DumpStructure($structure,$positions,$path.",$element");
echo "</".$structure[$path]["Tag"].">";
}
else
echo $structure[$path];
}