Bonjour j'ai un fichier XML du style :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
<countries>
	<country continent="-">Sélectionner</country>
	<country continent="Amériques">Canada</country>
	<country continent="Amériques">USA</country>
	<country continent="Europe">France</country>
</countries>
J'arrive à récupéré les pays :
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
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" initialize="initHandler(event)">
	<mx:Script>
		<![CDATA[
			private function initHandler(event:Event):void
			{
				txtService.send(); // text
				countryService.send(); //xml
 
			}
		]]>
	</mx:Script>
	<mx:HTTPService id="txtService" url="data.txt"/>
	<mx:HTTPService id="countryService" url="countries.xml"/>
 
	<mx:TextArea id="txtArea" text="{txtService.lastResult}"/>
 
	<mx:VBox>
		<mx:ComboBox id="cmbCountrie" dataProvider="{countryService.lastResult.countries.country}"/>
	</mx:VBox>
</mx:Application>
Mais quelle est la syntaxe pour récupérer l'attribut "continent" ?

Merci de votre aide