我想为我的网站添加Google小工具,因此我尝试为该小工具创建XML文件。创建后我将其上传到我的网站。在加载页面时,我发现文件中有一些错误。我尝试过很多次,但事实并非如此。所以请修正错误。
是XML文件 <Module>
<ModulePrefs title="How to buy a Javelin" height="350" author="http://www.tracknfieldgear.com" author_email="news.tracknfieldgear@gmail.com" title_url=" http://www.tracknfieldgear.com" screenshot="http://www.tracknfieldgear.com/images-new/how-to-throw-javelin.png" thumbnail="http://www.tracknfieldgear.com/images-new/how-to-throw-javelin.png" description="Tracknfieldgear.com is an online store that contains all kind of athletic equipments including shot put, javelin etc. This gadget is related to javelin"/>
<Content type="html">
<![CDATA[
<iframe name="How to buy a Javelin?" scrolling="no" allowtransparency="true" frameborder="0" width="250" height="250" src="http://goanimate.com/user/0xVwaBHeiRFI"></iframe>
]]>
</Content>
</Module>
我尝试加载的网址是http://www.tracknfieldgear.com/how-to-buy-javelin-gadget.xml
答案 0 :(得分:1)
显然它无法找到开始标记“ModulePrefs”
的结尾以下是XML-Validator的error message。
在author_email属性之前需要一个空格。
author="http://www.tracknfieldgear.com" author_email="news.tracknfieldgear@gmail.com"