Bonjour,
Je débute avec Castor, et je suis confronté au problème suivant...
Je souhaiterais parser la classe suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
Je souhaiterais obtenir l'xml suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9<taking-away> <apheresis-of-plates value="on" autolog="on"> <machine-type other="test">Other</machine-type> </apheresis-of-plates> <plasmapheresis value="on" autolog="on"> <machine-type other="test2">Other</machine-type> </plasmapheresis> ...
En utilisant le mapping castor :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
j'obitens l'xml suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9<taking-away> <apheresis-of-plates value="on" autolog="on"> <machine-type other="test" other="test2">Other</machine-type> </apheresis-of-plates> <plasmapheresis> <machine-type>Other</machine-type> </plasmapheresis> ...
Comment faire pour que le second other soit lié au plasmapheresis ?
D'avance merci pour votre aide...

 

 
		
		 
        

 
			
			



 Mapping Java <-> XML (Castor)
 Mapping Java <-> XML (Castor)
				 Répondre avec citation
  Répondre avec citation



 
   
 
						
Partager