У меня есть этот XML-файл:Синтаксический XML
Response: <ns3:ExecuteResponse xmlns:ns3="http://www.opengis.net/wps/1.0.0" xmlns:ns1="net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" statusLocation="xxxxf62" serviceInstance="http:/http-post" version="1.0.0" service="xxx">
<ns3:Process ns3:processVersion="0.2">
<ns1:Identifier>OM_B</ns1:Identifier>
<ns1:Title xml:lang="en-US">Bioclim</ns1:Title>
<ns1:Abstract xml:lang="en-US">yyyyyyyyyyyyyyyy</ns1:Abstract>
</ns3:Process>
<ns3:Status creationTime="2010-07-06T17:38:13.355+02:00">
<ns3:ProcessAccepted>ProcessConfiguration has been accepted.</ns3:ProcessAccepted>
</ns3:Status>
<ns3:ProcessOutputs />
</ns3:ExecuteResponse>
Как я могу извлечь атрибут statusLocation в ExecuteResponse узле?
Большое спасибо.
я не вижу каких-либо statusLocation в вашей выборке – Andrey
Это на первой линии. Прокрутите немного. –
Вам не нужен jQuery для разбора xml. См. Http://stackoverflow.com/questions/3054411/how-do-i-parse-xml-with-jquery, http://stackoverflow.com/questions/2124924/can-xml-be-parsed-reliably-using -jquerys-responsexml-syntax и http://stackoverflow.com/questions/2908899/jquery-wont-parse-xml-with-nodes-called-option –