RE: [PHP] Problem reading SimpleXML array NOT SOLVED but NO LONGER A PROBLEM

2005-10-25 Thread George Pitcher
Subject: Re: [PHP] Problem reading SimpleXML array Richard, I'm guessing you haven't played with simpleXML ... (apologies inadvance for any/all mistakes :-) chances are the var_dump() pointer you gave (which under normal circumstances would be spot on) will probably lead to more confusion

Re: [PHP] Problem reading SimpleXML array

2005-10-24 Thread Richard Lynch
On Mon, October 24, 2005 3:50 am, George Pitcher wrote: Hi, I'm having a problem reading an xml feed. This is my object: SimpleXMLElement Object ( [Header] = SimpleXMLElement Object ( [ID] = FX12GB [Test] = false [Name] = Foreign Exchange

Re: [PHP] Problem reading SimpleXML array

2005-10-24 Thread Jochem Maas
Richard, I'm guessing you haven't played with simpleXML ... (apologies inadvance for any/all mistakes :-) chances are the var_dump() pointer you gave (which under normal circumstances would be spot on) will probably lead to more confusion. to put it lightly SimpleXML doesn't lend itself to

Re: [PHP] Problem with SimpleXML

2005-08-25 Thread Richard Lynch
On Wed, August 24, 2005 3:20 am, Uroš Gruber wrote: I have XML and I would like to set some values. I almost done the whole thing but have some problems when looping through some tags foo bar id=1 name=bar1 / bar id=2 name=bar2 / ... /foo I would like to set value for tag bar

Re: [PHP] Problem with SimpleXML

2005-08-24 Thread Jordan Miller
Yes, simplexml can do this easily. See: http://www.php.net/simplexml Example 7. Setting values Data in SimpleXML doesn't have to be constant. The object allows for manipulation of all of its elements. ?php include 'example.php'; $xml = simplexml_load_string($xmlstr);