我正在嘗試從標(biāo)簽中提取RecordID =“ 1014276”我嘗試了:$result = curl_exec($ch);curl_close($ch);$xml2 = simplexml_load_string($result);echo $latitude = (string) $xml2['RecordID'];這是XML響應(yīng):<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <ns1:createDataResponse xmlns:ns1="http://3e.pl/ADInterface"> <StandardResponse RecordID="1014276" xmlns="http://3e.pl/ADInterface"/> </ns1:createDataResponse> </soap:Body></soap:Envelope>
從xml標(biāo)記中提取值
慕桂英3389331
2021-04-29 17:32:47