XML -- SqlServer 2005 : groupe/total
Bonjour,
Comment faire pour recuperer ce genre de config :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
<entete IdEntete="1">
<Date>2008-01-01</Date>
<IdDate>2222_01</IdDate>
<Devise>CHF</Devise>
<Groupe>
<Montant>-80492.5</Montant>
<Montant2>28446.30</Montant2>
<ssGroupe>
<IdSsGroupe>2222_01_01</IdSsGroupe>
<Montant>21512.23</Montant>
<prix>84.36</prix>
<Montant2>0</Montant2>
<cashOutflow>100000</cashOutflow>
</ssGroupe>
<ssGroupe>
<IdSsGroupe>2222_01_02</IdSsGroupe>
<Montant>5200000</Montant>
<prix>151.78</prix>
<Montant2>895200</Montant2>
<cashOutflow>521000</cashOutflow>
</ssGroupe>
</Groupe>
<total>
<Montant>-80492.5</Montant>
<Montant2>28446.30</Montant2>
<ssGroupe>
<IdSsGroupe>2222_01_01</IdSsGroupe>
<Montant>21512.23</Montant>
<prix>84.36</prix>
<Montant2>0</Montant2>
<cashOutflow>100000</cashOutflow>
</ssGroupe>
<ssGroupe>
<IdSsGroupe>2222_01_02</IdSsGroupe>
<Montant>5200000</Montant>
<prix>151.78</prix>
<Montant2>895200</Montant2>
<cashOutflow>521000</cashOutflow>
</ssGroupe>
</total>
</entete> |
Le probleme est que groupe est au meme niveau que total
et que certains noms sont identiques
Merci