C'est surement tout bête mais je ne sais pas comment faire pour savoir combien de <Entity class='Position' ...> il y a dans mon fichier .xml sachant qu'il peut en avoir une infinité!(enfin bcp bcp)
Il doit exister une fonction pour ça en C++....
mici bcp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <Entity class="Chemin" name="Chemin sortie rafale"> <Location x="0.0" y="0.0" z="0.0"/> <Orientation roll="0.0" pitch="0.0" yaw="1.42721895471"/> <Relation name="position" value="Position 1"/> <Relation name="position" value="Position 2"/> <Entity class="Position" name="Position 1"> <Location x="20.0" y="0.0" z="0.0"/> <Orientation roll="0.0" pitch="0.0" yaw="0.0"/> </Entity> <Entity class="Position" name="Position 2"> <Location x="37.8406" y="-26.4524" z="0"/> <Orientation roll="0.0" pitch="0.0" yaw="0.0"/> </Entity> </Entity>![]()
Partager