[AJAX] Parse XML : Différences IE:FF ?
Bonjour
Y a t'il des différences entre IE et FF concernant le parsage des retours XML par AJAX ?
Je m'explique : je reçoit une réponse XML par AJAX comme ceci :
Code:
1 2 3 4 5 6 7 8 9 10
| <root>
<tarifsmodules>
<![CDATA[
<table border=0><tr><td><a href="prodOPT1.asp">MAGISTRAL SANTE EQUILIBRE SALARIE </a></td><td><strong>56,13</strong></td><tr><td><a href="prodOPT2.asp">MAGISTRAL SANTE STABILITE SALARIE </a></td><td><strong>67,31</strong></td><tr><td><a href="prodOPT3.asp">MAGISTRAL SANTE QUIETUDE SALARIE </a></td><td><strong>76,40</strong></td><tr><td><a href="prodOPT4.asp">MAGISTRAL SANTE SERENITE SALARIE </a></td><td><strong>93,75</strong></td><tr><td><a href="prodOPT5.asp">MAGISTRAL SANTE PLENITUDE SALARIE </a></td><td><strong>115,86</strong></td></table>
]]>
</tarifsmodules>
<garanties>
<garantie id="MB0"><libelle>MAGISTRAL SANTE EQUILIBRE SALARIE </libelle><tar>0</tar><tartp>56.13</tartp><tarifmod>0</tarifmod><tariftpmod>56.13</tariftpmod><ta>42.44</ta><tg>0.10000000149011612</tg><tc>0.15</tc><tgm>0</tgm><tcm>0.15</tcm><test>0.7560975537067507</test></garantie><garantie id="MB1"><libelle>MAGISTRAL SANTE STABILITE SALARIE </libelle><tar>0</tar><tartp>67.31</tartp><tarifmod>0</tarifmod><tariftpmod>67.31</tariftpmod><ta>50.89</ta><tg>0.10000000149011612</tg><tc>0.15</tc><tgm>0</tgm><tcm>0.15</tcm><test>0.7560975537067506</test></garantie><garantie id="MB2"><libelle>MAGISTRAL SANTE QUIETUDE SALARIE </libelle><tar>0</tar><tartp>76.4</tartp><tarifmod>0</tarifmod><tariftpmod>76.4</tariftpmod><ta>57.77</ta><tg>0.10000000149011612</tg><tc>0.15</tc><tgm>0</tgm><tcm>0.15</tcm><test>0.7560975537067507</test></garantie><garantie id="MB3"><libelle>MAGISTRAL SANTE SERENITE SALARIE </libelle><tar>0</tar><tartp>93.75</tartp><tarifmod>0</tarifmod><tariftpmod>93.75</tariftpmod><ta>70.88</ta><tg>0.10000000149011612</tg><tc>0.15</tc><tgm>0</tgm><tcm>0.15</tcm><test>0.7560975537067505</test></garantie><garantie id="MB4"><libelle>MAGISTRAL SANTE PLENITUDE SALARIE </libelle><tar>0</tar><tartp>115.86</tartp><tarifmod>0</tarifmod><tariftpmod>115.86</tariftpmod><ta>87.6</ta><tg>0.10000000149011612</tg><tc>0.15</tc><tgm>0</tgm><tcm>0.15</tcm><test>0.7560975537067507</test></garantie>
</garanties>
</root> |
puis , j'ai le code suivant :
Code:
$("sp_tarifsModules").innerHTML=this.respXML.getElementsByTagName("tarifsmodules")[0].firstChild.nodeValue;
(sp_tarifsModules est l'id d'un div)
ça marche nickel sur FF, mais IE me sort une erreur :
Question : Est-ce que je parse mal mon xml, ou y a t'il des différences à ce niveau entre les deux navigateurs ?
(pour l'info, this.respXML représente bien mon objet xml)