================================提交xml格式的数据到接口=========================================================<script language="javascript">
function _submit(){
document.form2.action = "http://dlink.sohoto.com/directlink/send.do";
document.form2.method = "post"; //post
document.form2.target = "_self";//_self //_parent //_top
document.form2.submit();
document.form1.action = "hotel_check.php";
document.form1.method = "post"; //post
document.form1.target = "_blank"; //_self //_parent //_top
document.form1.submit();
}
</script>
==============================返回的结果=============================================================<OTResponse><HotelResRS><Errors><Error ErrorCode="error.reservation.roomRate.noRate" ErrorDesc="没有可用的价格"/></Errors></HotelResRS><TransactionName>TH_HotelResRS</TransactionName><Header><TimeStamp>0001-01-01T00:00:00</TimeStamp><Application>hotelbe</Application><Language>CN</Language></Header><IdentityInfo><OfficeID>SZF511</OfficeID><UserID>SZF51100C</UserID><Password>12345678</Password></IdentityInfo></OTResponse>
我怎么获取这个xml格式的数据
function _submit(){
document.form2.action = "http://dlink.sohoto.com/directlink/send.do";
document.form2.method = "post"; //post
document.form2.target = "_self";//_self //_parent //_top
document.form2.submit();
document.form1.action = "hotel_check.php";
document.form1.method = "post"; //post
document.form1.target = "_blank"; //_self //_parent //_top
document.form1.submit();
}
</script>
==============================返回的结果=============================================================<OTResponse><HotelResRS><Errors><Error ErrorCode="error.reservation.roomRate.noRate" ErrorDesc="没有可用的价格"/></Errors></HotelResRS><TransactionName>TH_HotelResRS</TransactionName><Header><TimeStamp>0001-01-01T00:00:00</TimeStamp><Application>hotelbe</Application><Language>CN</Language></Header><IdentityInfo><OfficeID>SZF511</OfficeID><UserID>SZF51100C</UserID><Password>12345678</Password></IdentityInfo></OTResponse>
我怎么获取这个xml格式的数据
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货