質問
XML検証の問題があります。このビット:
<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&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproject-debug%2fproject.html&cb=014a7c8eda&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&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&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproject-debug%2fproject.html&cb=014a7c8eda' width='0' height='0' alt='' style='width: 0px; height: 0px;' </img></div>"};
</script>
結果:
このページには、次のエラーが含まれています:列246の5行目のエラー:エラー解析属性名
私のエラーが何であるかわかりません。この問題を修正する方法についての提案はありますか?
ありがとうございました!
-laxmidi
解決
あなたは終わりを逃しているようです >
あなたの両方に <img>
タグ。つまり、次のようにする必要があります。
<img src='... height: 0px;'> </img>
あなたが現在持っているものの代わりに:
<img src='... height: 0px;' </img>
次の行には同じエラーがあります。それが問題を修正するかどうかを確認しますか?
他のヒント
<img>
タグにはペアがありません </img>
代わりにタグを終了します <img src="...." />
所属していません StackOverflow