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: BookingReference ReferenceSource=api165432 /BookingReference 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:

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: BookingReference ReferenceSource=api165432 /BookingReference 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