Afficher xml en html

chourouk86 Messages postés 45 Date d'inscription samedi 14 avril 2007 Statut Membre Dernière intervention 17 décembre 2013 - Modifié par kazma le 11/12/2013 à 18:09
chourouk86 Messages postés 45 Date d'inscription samedi 14 avril 2007 Statut Membre Dernière intervention 17 décembre 2013 - 11 déc. 2013 à 15:44
Bonjour, j'ai un fichier xml et je veux afficher son contenu en html. J'ai essayé quelques exemples mais je trouve que l'affichage est faisable sauf sur IE.
Je me suis bloquée, merci de me donner un coup de main.
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
</Styles>
<Worksheet ss:Name="plans">
<Table ss:ExpandedColumnCount="3" ss:ExpandedRowCount="185" x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">A-0-1</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">A-0-3</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">A-0-4</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
</Table>
</Workbook>

2 réponses

jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 344
11 déc. 2013 à 15:25
Bonjour,


l'affichage est faisable sauf sur IE 5.x.

Ben en même temps... c'est un peu vieu comme IE .. non ??
Si des personnes tournent encore avec ça... c'est grave (ou alors elles sont sous windows 98 ? ^^ )


0
chourouk86 Messages postés 45 Date d'inscription samedi 14 avril 2007 Statut Membre Dernière intervention 17 décembre 2013
11 déc. 2013 à 15:27
Faute de frappe j'ai voulu dire en IE avec toutes les versions
0
jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 344
11 déc. 2013 à 15:36
Bonjour,

Sous IE8 .. ça fonctionne...
(sous IE9, un bug a été ouvert chez Microsoft)
Pour les autres.. je ne sais pas.

Par contre, ton XML semble contenir des erreurs..


<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
</Styles>
<Worksheet ss:Name="plans">
<Table ss:ExpandedColumnCount="3" ss:ExpandedRowCount="185" x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">A-0-1</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">A-0-3</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">A-0-4</Data></Cell>
<Cell><Data ss:Type="String">Rouge</Data></Cell>
<Cell><Data ss:Type="String">Vendu</Data></Cell>
</Row>
</Table>
</Worksheet>
</Workbook>

0
chourouk86 Messages postés 45 Date d'inscription samedi 14 avril 2007 Statut Membre Dernière intervention 17 décembre 2013
11 déc. 2013 à 15:44
Merci jordane45.
0
Rejoignez-nous