Probleme avec XML

Résolu
yasdar Messages postés 121 Date d'inscription mercredi 12 janvier 2011 Statut Membre Dernière intervention 19 mai 2012 - 21 juil. 2011 à 13:34
pegase31 Messages postés 6138 Date d'inscription dimanche 21 décembre 2003 Statut Modérateur Dernière intervention 4 septembre 2013 - 21 juil. 2011 à 16:57
[b]bonjour,
j'ai un fichier xml:/b
<?xml version="1.0" encoding="UTF-8" ?>

<trackList>

<track>
<type>Alt.</type>
<song>The Funeral</song>
mp3s/bandofhorses/funeral.mp3


Band Of Horses
Band Of Horses
Everything All The Time
<year>2007</year>
images/b1.jpg
<largealbumart>images/bhorses.jpg</largealbumart>
mp3,wav,mp4,mov
1.25


</track>

<track>
<type>Pop</type>
<song>Your Love Means Everything</song>
mp3s/song2.mp3


Chris Martin
Faultline
Faultline
<year>2004</year>
images/image2.jpg
<largealbumart>images/chris.jpg</largealbumart>
mp3,wav,mp4,mov
1.25


</track>

</trackList>

[b]jusqua ic tout marche bien .

le probleme : à la fin de ce fichier j'ajoute:/b

Pirates@WillAlwaysWork.com
<currencyCode>USD</currencyCode>
<thankYouUrl>thankYou.html</thankYouUrl>
<cancelUrl>cancel.html</cancelUrl>



[b]flash m'affiche :
TypeError: Error #1088: The markup in the document following the root element must be well-formed.
est ce que quelqu'un peut m'expliquer ce que c'est?/b

1 réponse

pegase31 Messages postés 6138 Date d'inscription dimanche 21 décembre 2003 Statut Modérateur Dernière intervention 4 septembre 2013 12
21 juil. 2011 à 16:57
Bonjour

Tu as placé des balises après avoir fermé ta balise mère "Tracklist".
Or ça rend le XML invalide.

Peg'
3
Rejoignez-nous