How to get value from xml

How to extract value from this xml commBRIDGEFusionMOTORResult

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<commBRIDGEFusionMOTORResponse xmlns="http://tempuri.org/">
<commBRIDGEFusionMOTORResult>
<Root>
<Authentication>

...

</Root>
</commBRIDGEFusionMOTORResult>
</commBRIDGEFusionMOTORResponse>
</s:Body>
</s:Envelope>

what did you try yourself?

How to get VehicleIDV value in php

<product> 
<risks>
<VehicleIDV Name="VehicleInsuredDeclaredValue" Value="1200000.00" />
</risks>
</product>

see http://php.net/simplexml

2 Likes

I think what @chorn meant was for you to post the code you’ve tried, and someone will have a look through it to see why it’s not working the way you need it to.

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.