【发布时间】:2014-10-17 08:51:40
【问题描述】:
我正在尝试将带有 <![CDATA[ ]]> 标记中的一些 JSON 数据的 xml 文件提供给 Google Search Appliance,但由于 GSA 呈现为 HTML 格式,因此没有得到预期的结果。
下面是我试图在 GSA 上提供的文件-
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN" "gsafeed.dtd">
<gsafeed>
<header>
<datasource>samples_feed</datasource>
<feedtype>Full</feedtype>
</header>
<group>
<record url="some url" action="add" mimetype="application/json">
<content>
<![CDATA[
{"1":"Samlpe","2":"JSON","3":false}]]>
</content>
</record>
</group>
</gsafeed>
【问题讨论】: