Question

J'ai un problème de validation XML. Ce bit:

<script type="text/javascript">
oxm_ad = {"website":"cca9e4b4-7ed2-848z-ffea-067efabc891a",
"size":"468x60",
"floor":"0.01",
"beacon":"<div id='beacon_017a6c9ega' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://www.website.com/openx/www/delivery/lg.php?bannerid=1&amp;campaignid=1&amp;zoneid=4&amp;loc=http%3a%2f%2flocalhost%2fproject-debug%2fproject.html&amp;cb=014a7c8eda&amp;bannerid=-1' width='0' height='0' alt='' style='width: 0px; height: 0px;' </img></div>",
"fallback":"<a href='http://www.website.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=014a7c8eda__oadest=http%3a%2f%2fwww.website.com' target='_blank'><img src='http://www.website.com/openx/www/delivery/ai.php?filename=mybanner.png&amp;contenttype=png' width='468' height='60' alt='' title='' border='0' /></a><div id='beacon_014a7c8eda' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://www.website.com/openx/www/delivery/lg.php?bannerid=1&amp;campaignid=1&amp;zoneid=4&amp;loc=http%3a%2f%2flocalhost%2fproject-debug%2fproject.html&amp;cb=014a7c8eda' width='0' height='0' alt='' style='width: 0px; height: 0px;' </img></div>"};
</script>

résulte en:

Cette page contient les erreurs suivantes: Erreur sur la ligne 5 à la colonne 246: Erreur Analyse d'attribut Nom

Je ne sais pas quelle est mon erreur. Des suggestions sur la façon de corriger ce problème?

Merci!

-Laxmidi

Était-ce utile?

La solution

On dirait que tu manques la fin > Sur votre deux <img> Mots clés. C'est-à-dire que ça devrait être:

<img src='... height: 0px;'> </img>

Au lieu de ce que vous avez actuellement:

<img src='... height: 0px;' </img>

La ligne suivante a la même erreur. Voyez si cela résout le problème?

Autres conseils

<img> Le balise n'a plus de couple </img> Tag de fin utilisez à la place <img src="...." />

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top