In questo file XML SOAP, come posso ottenere 7
su una query XPath?Ottenere elementi con spazio dei nomi predefinito (nessun prefisso dello spazio dei nomi) utilizzando XPath
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<HelloWorldResponse xmlns="http://tempuri.org/">
<HelloWorldResult>7</HelloWorldResult>
</HelloWorldResponse>
</soap:Body>
</soap:Envelope>
di query XPath Questo non funziona //*[name() ='soap:Body']
.
cosa stai cercando di estrarre? –
non è il problema – user2411903
mancante <. ma non è il problema. Voglio il numero 7 – user2411903