Re: [PHP] Extract an element from XML

2009-07-31 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Angelo Zanetti wrote: Hi all, I have the following segment of XML: 165432 Now I want to get the value of the BookingReference where the ReferenceSource = "api". In other words I want to get the value 165432. I have the following code: $ItemConfirmationReference2 = $x

Re: [PHP] Extract an element from XML

2009-07-31 Thread Aschwin Wesselius
Angelo Zanetti wrote: Hi all, I have the following segment of XML: 165432 Now I want to get the value of the BookingReference where the ReferenceSource = "api". In other words I want to get the value 165432. I have the following code: $ItemConfirmationReference2 = $xpath->query('BookingR

[PHP] Extract an element from XML

2009-07-31 Thread Angelo Zanetti
Hi all, I have the following segment of XML: 165432 Now I want to get the value of the BookingReference where the ReferenceSource = "api". In other words I want to get the value 165432. I have the following code: $ItemConfirmationReference2 = $xpath->query('BookingReference ReferenceSource'