Hi,
ok, I am confused as what you want, there is no attribute or node Speed.
do you mean you want to access all Rankspeeds?
I have anyway done this, please get the attached packaged, the scene is in PlayMaker Custom Sample/DataMaker/levels
It gets all rankspeeds values and put them into separate lists, Distances, Values, Rewards.
I think your confusing is multiple here, so have a go and check this out, and see how each Xpath is made, the most complex being on how to get to a level given it's id:
//*[IdLevel=_0_]/.
where _0_ is a variable reference holding the level id, so this xpath say
give me any parent ( /.) from anywhere in the xml (//*) of a node "IdLevel" who's content is equal to _0_ ( 2 in the demo.
which this we know have a hold on a particular level xml.
then, we get the rankSpeeds, the xpath is:
RankSpeeds/RankSpeed
this is where thing could be confusing too, you want all 'RankSpeed' nodes, so you need to point at the place you expect them.
So yeah, here it's really a matter of learning and mastering xPAth. I whish I had a magic trick to make this easier to learn, but there isn't
xPath is Amazing, Powerful and SOOO flexible that it's a language to leanr by itself, and experimenting is the only way I personnally found my way around that...
If the demo works for you, I'll wrap it up as a sample on the Ecosystem, Are you ol if I use your xml? I think that a real world scenario always has more impact on useful learning.
Bye,
Jean