2013-03-25 27 views
0

大家好我有一個網站,我用curl用xml打電話給服務器並檢索resul 在Firefox和Chrome中工作正常,但在Internet Explorer 9中,返回給我關閉標記上的這個錯誤IE上的錯誤XML5633

</head>

錯誤:

XML 5633: The name of the end tag does not match the name of the corresponding start tag.

這是我的代碼:

<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <link media="screen" type="text/css" href="http://myurl/style.css" rel="stylesheet"/> 
    <link media="screen" type="text/css" href="http://myurl/css/backend/jquery-ui-1.9.1.css" rel="stylesheet"/> 
    <script src="http://myurl/js/jquery/jquery-1.8.2.min.js" type="text/javascript"></script>   
    <title>My Page</title> 
</head> 
//rest of code 

的XML請求是(在其他瀏覽器工作正常請求的參數是好的):

$xml_data ="<?xml version='1.0' encoding='UTF-8'?> 
<BOOKING type='HA' lang='it-IT' returnURLNeed='no' returnURL='http://' AGENTCODE='XXX' AGENTPASSWORD='YYY' AVAILABLE_HOTELS_ONLY='NO' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://link/Hrequest.xsd'> 
    <DATA COUNTRY_CODE='".$nation_code."' CITY_CODE='".$city_code."'> 
<ROOMS_DATA ".$room."/> 
<DATE_DATA CHECK_IN_DATE='".$date_start."' CHECK_OUT_DATE='".$date_end."'/> 
<OPTIONAL_DATA ".$rating." NeedReductionAmount='NO' NeedHotelMessages='NO' NeedFreeNightDetails='NO' SortingOrder='Low'/> 
<ADDITIONAL_DATA PICTURE_NEED='YES' AMENITY_NEED='NO' HOTEL_ADDRESS_NEED='NO' TELEPHONE_NO_NEED='NO' FAX_NO_NEED='NO' EMAIL_NEED='NO' HotelDescription='YES' HotelCity='YES' HotelProperties='YES' HotelArrivalPointOther='NO' HotelArrivalPoint='NO' GeoCodes='YES' Location='YES' CityArea='YES' EnglishTextNeed='NO'/>".$multirating." 
    </DATA> 
</BOOKING>"; 

錯誤在哪裏?

回答

1

請嘗試

變化:

<DATA COUNTRY_CODE='".$nation_code."' CITY_CODE='".$city_code."'> 

要:

<DATA COUNTRY_CODE=".$nation_code." CITY_CODE=".$city_code."> 

變化:

<DATE_DATA CHECK_IN_DATE='".$date_start."' CHECK_OUT_DATE='".$date_end."'/> 

要:

<DATE_DATA CHECK_IN_DATE=".$date_start." CHECK_OUT_DATE=".$date_end."/> 

編輯1:

關閉標籤明確地像</DATE_DATA>

編輯2:

增加或減少的jquery版本

編輯3:

禁用IE插件

+0

這不是問題,b因爲請求需要''。如果我編輯此請求不起作用!不是這個問題 – 2013-03-25 08:55:21