RE: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
Angelo Zanetti wrote: > Thanks Per but I didn't send all the XML but you see that there is a > city code and an item code: > > > > > > > How would I get the Item code then? Based on your answer above? > Hi Angelo this should work: query( 'HotelDetails/H

RE: [PHP] Extract code from XML

2009-01-30 Thread Angelo Zanetti
-Original Message- From: Per Jessen [mailto:p...@computer.org] Sent: 30 January 2009 11:53 To: php-general@lists.php.net Subject: Re: [PHP] Extract code from XML Angelo Zanetti wrote: > Hi all, > > I have the following snippet of XML: > > Code: > > > >

Re: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
Angelo Zanetti wrote: > Hi all, > > I have the following snippet of XML: > > Code: > > > > > > > > I need to get the Code for the item, IE get the value "AME" from the > XML. I am using PHP5 and the following code which I can extract the > value of the Item: "AMERICAN". > > PHP Code: >

Re: [PHP] Extract code from XML

2009-01-30 Thread Robert Stankiewicz
check this : http://nl3.php.net/manual/en/book.simplexml.php best regards Robert Angelo Zanetti : Hi all, I have the following snippet of XML: Code: HasPictures="true">