Bonjour,

Je souhaite récupérer les frères d'un élément selon certains critères :

Voici le modèle de données :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<?xml version="1.0" encoding="UTF-8"?>
<contenu>
	<body>
		<paragraphe nom="TitrePlanAction">Titre plan action 1</paragraphe>
		<paragraphe nom="TitreContexte">Titre contexte</paragraphe>
		<paragraphe nom="Contexte">contexte</paragraphe>
		<paragraphe nom="Contexte">suite contexte</paragraphe>
		<paragraphe nom="Contexte">...</paragraphe>
		<paragraphe nom="TitreResultat">Titre résultat</paragraphe>
		<paragraphe nom="Resultat">résultat</paragraphe>
		<paragraphe nom="Resultat">suite résultat</paragraphe>
		<paragraphe nom="Resultat">...</paragraphe>
		<tableau>
			<ligne>
				<cellule><paragraphe nom="Indicateur">indicateur 1</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif</paragraphe></cellule>
				<cellule><paragraphe nom="Indicateur">indicateur 2</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif</paragraphe></cellule>
				<cellule><paragraphe nom="Indicateur">indicateur n</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif</paragraphe></cellule>
			</ligne>
		</tableau>
 
		<paragraphe nom="TitrePlanAction">Titre plan action 2</paragraphe>
		<paragraphe nom="TitreContexte">Titre contexte</paragraphe>
		<paragraphe nom="Contexte">contexte</paragraphe>
		<paragraphe nom="Contexte">suite contexte</paragraphe>
		<paragraphe nom="Contexte">...</paragraphe>
		<paragraphe nom="TitreResultat">Titre résultat</paragraphe>
		<paragraphe nom="Resultat">résultat</paragraphe>
		<paragraphe nom="Resultat">suite résultat</paragraphe>
		<paragraphe nom="Resultat">...</paragraphe>
		<tableau>
			<ligne>
				<cellule><paragraphe nom="Indicateur">indicateur 1</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif</paragraphe></cellule>
				<cellule><paragraphe nom="Indicateur">indicateur composé</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif 1</paragraphe><paragraphe nom="Objectif">valeur de l'objectif 2</paragraphe></cellule>
				<cellule><paragraphe nom="Indicateur">indicateur n</paragraphe></cellule><cellule><paragraphe nom="Objectif">valeur de l'objectif</paragraphe></cellule>
			</ligne>
		</tableau>
	</body>
</contenu>
En termes plus simples un plan d'action possède un contexte, un résultat, des indicateurs, chaque indicateur peut avoir un ou plusieurs objectif.

Pour chaque plan d'action j'aimerai récupérer ses indicateurs et objectifs correspondants...

Merci !