Afficher xml dans HTML
Résolu
supupoff
Messages postés
312
Date d'inscription
Statut
Membre
Dernière intervention
-
supupoff Messages postés 312 Date d'inscription Statut Membre Dernière intervention -
supupoff Messages postés 312 Date d'inscription Statut Membre Dernière intervention -
Bonsoir,
je veux afficher XML en html j'ai fait recours a c tuto http://www.lehtml.com/xml/xml_html.html
mais rien il m affiche que les colonnes de tableau et pas le resultat volus alors que fichier xml contient :
Code XML ::
<xml version="1.0" encoding="iso-8859-1"?><rss version="2.0"><magazin>
<titre>Magazine</titre>
<item>
<nom>Produit A</nom>
<prix>1000</prix>
<type>Informatique</type>
<description>Ordinateur Portable HP Pavillant 7200</description>
</item>
<item>
<nom>Produit B</nom>
<prix>1000</prix>
<type>Informatique</type>
<description>Scanner Hp Deskhet</description>
</item>
</magazin>
Code HTML :
<html>
<body>
<xml id="fichierxml" src="magazin.xml"></xml>
<table border="1" datasrc="#fichierxml">
<tr>
<td>Produits</td>
<td>Prix dt</td>
<td>Type </td>
<td>Description</td>
</tr>
<tr>
<td><span datafld="nom"></span></td>
<td><span datafld="prix"></span></td>
<td> <span datafld="type"></td>
<td> <span datafld="description"></td>
</tr>
</table>
</body>
</html>
je veux afficher XML en html j'ai fait recours a c tuto http://www.lehtml.com/xml/xml_html.html
mais rien il m affiche que les colonnes de tableau et pas le resultat volus alors que fichier xml contient :
Code XML ::
<xml version="1.0" encoding="iso-8859-1"?><rss version="2.0"><magazin>
<titre>Magazine</titre>
<item>
<nom>Produit A</nom>
<prix>1000</prix>
<type>Informatique</type>
<description>Ordinateur Portable HP Pavillant 7200</description>
</item>
<item>
<nom>Produit B</nom>
<prix>1000</prix>
<type>Informatique</type>
<description>Scanner Hp Deskhet</description>
</item>
</magazin>
Code HTML :
<html>
<body>
<xml id="fichierxml" src="magazin.xml"></xml>
<table border="1" datasrc="#fichierxml">
<tr>
<td>Produits</td>
<td>Prix dt</td>
<td>Type </td>
<td>Description</td>
</tr>
<tr>
<td><span datafld="nom"></span></td>
<td><span datafld="prix"></span></td>
<td> <span datafld="type"></td>
<td> <span datafld="description"></td>
</tr>
</table>
</body>
</html>
A voir également:
- Afficher xml dans html
- Xml download - Télécharger - Édition & Programmation
- Editeur html - Télécharger - HTML
- Afficher appdata - Guide
- Afficher calendrier outlook dans google agenda - Guide
- Dans le diaporama à télécharger, les diapositives s’enchaînent automatiquement. combien de temps la diapositive crayon met-elle à s’afficher ? combien de temps reste-t-elle affichée à l’écran ? ✓ - Forum Powerpoint