このxmlに問題はありますか?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results xmlns="http://www.host.com/type">
<result>
<attr value="" name="TitleBlock1"/>
<attr value="" name="TitleBlock2"/>
<attr value="Introductory" name="rev"/>
</result>
</results>
サーバーから応答を受け取っているときや、firebugをチェックインしたときのように、
XML Parsing Error: no element found Location: moz-nullprincipal:{3c06a977-b497-5c43f72584c8} Line Number 1, Column 1:
^
サーバーから応答が返ってこないので、またこのURLに対して200 Okの要求を受け取っhttps://rest-search.host.com/machine/search/meta?id=TR
ていますが、応答がありません。これは以下のコードです
var search_agile_metadata= 'https://rest-search.host.com/m/search/meta?id=';
var on_show_info_agile = function() {
request_meta_info = $.ajax({
url: data + current_doc_info.id,
type: 'GET',
success: data,
error: data
});
};
したがって、URLを変更してjson応答を取得することを考えました。そして、dataTypeをscriptに変更すると、応答が返されますが、エラーが発生しますmissing ; before statement
。何が間違っているのかわからない