【问题标题】:Google Search Appliance Feed ErrorGoogle Search Appliance 供稿错误
【发布时间】:2015-05-14 10:16:43
【问题描述】:

根据以下文档,我已经解析并构建了包含用于喂食的元标记的 xml 文件。

https://www.google.com/support/enterprise/static/gsa/docs/admin/72/gsa_doc_set/feedsguide/feedsguide.html#1073742

尽管发送帖子(通过特定端口的 http 请求)返回成功,但我看到下面的错误,因此馈送失败:

跳过提要的其余部分,行号:1,错误:找不到 开始标签元结束

我认为这是因为我发送给 feed 的 xml 文件中的特殊字符。您对此有什么想法和解决方案吗?

这是我发送的 XML 示例:

<?xml version="1.0" encoding="utf-8"?>
<gsafeed>
    <header>
        <datasource></datasource>
        <feedtype>metadata-and-url</feedtype>
    </header>
    <group>
        <record url="url.xml" action="add" mimetype="text/html" lock="true">
            <metadata>
                <meta name="city" content="sample" />
                <meta name="cityName" content="sample" />
                <meta name="town" content="sample" />
                <meta name="type" content="sample" />
                <meta name="area" content="sample" />
                <meta name="price" content="sample" />
                <meta name="currency-code" content="USD" />
                <meta name="description" content="" />
                <meta name="heading" content="_" />
            </metadata>
        </record>
    </group>
</gsafeed>

【问题讨论】:

    标签: java character-encoding google-search-appliance


    【解决方案1】:

    &lt;meta name="description" content="" /&gt;

    元标记上不允许有空内容。

    【讨论】:

    • 元内容中是否允许使用

        等 Html 标签?如果没有,我可以为这些标签做什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-24
    • 1970-01-01
    • 2014-08-08
    相关资源
    最近更新 更多