i managed to parse data from the xml files, however for a complete control i need to know the lenght of the arrays in the XML file.
i can values by
var _val2 = node[“system”][0][“planet”][1][“@name”];
however i need to get how many systems , forexample i tried sth like this nut no way 
var _val2 = node[“system”][“length”];
what is the way for it?
You don’t need to actually store how many planets there are within the actual xml. Just use an int var and increase it by 1 for each read you perform:
So if you are reading in the element System as being the startelement for each object then at the part of your script where you instantiate or add them to your array you simply i++.
You’ll end up with your data loaded in and you can use to check how many items were loaded in your array.
I hope this is what you were referring to, as your description was very hard to follow.