CODE
<?xml version="1.0" encoding="UTF-8"?>
<list>
<content>
<thumbnail>lyoko.jpg</thumbnail>
<preview>lyoko.flv</preview>
<name> CODE LYOKO</name>
<desc>Infecté par un...</desc>
<mediatype>video serial</mediatype>
<duration>39.7</duration>
<part>
<thumbnail>lyoko1.jpg</thumbnail>
<name>D'un cheveu</name>
<desc>À la suite... </desc>
<number>1</number>
</part>
<part>
<thumbnail>lyoko2.jpg</thumbnail>
<name>Créature de rêve</name>
<desc>Nos héros...</desc>
<number>2</number>
</part>
</content>
<content>
<thumbnail>lyoko.jpg</thumbnail>
<preview>lyoko.flv</preview>
<name> CODE LYOKO</name>
<desc>Infecté par un...</desc>
<mediatype>video serial</mediatype>
<duration>39.7</duration>
<part>
<thumbnail>lyoko1.jpg</thumbnail>
<name>D'un cheveu</name>
<desc>À la suite... </desc>
<number>1</number>
</part>
<part>
<thumbnail>lyoko2.jpg</thumbnail>
<name>Créature de rêve</name>
<desc>Nos héros...</desc>
<number>2</number>
</part>
</content>
<list>
<list>
<content>
<thumbnail>lyoko.jpg</thumbnail>
<preview>lyoko.flv</preview>
<name> CODE LYOKO</name>
<desc>Infecté par un...</desc>
<mediatype>video serial</mediatype>
<duration>39.7</duration>
<part>
<thumbnail>lyoko1.jpg</thumbnail>
<name>D'un cheveu</name>
<desc>À la suite... </desc>
<number>1</number>
</part>
<part>
<thumbnail>lyoko2.jpg</thumbnail>
<name>Créature de rêve</name>
<desc>Nos héros...</desc>
<number>2</number>
</part>
</content>
<content>
<thumbnail>lyoko.jpg</thumbnail>
<preview>lyoko.flv</preview>
<name> CODE LYOKO</name>
<desc>Infecté par un...</desc>
<mediatype>video serial</mediatype>
<duration>39.7</duration>
<part>
<thumbnail>lyoko1.jpg</thumbnail>
<name>D'un cheveu</name>
<desc>À la suite... </desc>
<number>1</number>
</part>
<part>
<thumbnail>lyoko2.jpg</thumbnail>
<name>Créature de rêve</name>
<desc>Nos héros...</desc>
<number>2</number>
</part>
</content>
<list>
Mon fichier s'appel myXml.xml
J'ai fait ce code, pour deja recupere le name :
CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:XML id="directory" source="myXml.xml"></mx:XML>
<mx:Tree dataProvider="{directory.list.content.name}" labelField="@label" showRoot="false" width="200" height="200"/>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:XML id="directory" source="myXml.xml"></mx:XML>
<mx:Tree dataProvider="{directory.list.content.name}" labelField="@label" showRoot="false" width="200" height="200"/>
</mx:Application>
Mais cela me retoune le message d'erreur suivant :
CODE
Error: Problem parsing external XML: .../myXml.xml - (line 4) The entity name must immediately follow the '&' in the entity reference.
Si vous savez d' ou peur venir le problème et m'explique comment je pourrai parser correctement le fichier XML sa serait super.
Merci
