Re: Adressing XML Objects
| From: | Jim Lucas | Date: | Wed, 07 Jan 2009 20:51:48 +0000 |
| Subject: | Re: Adressing XML Objects | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285607@lists.php.net to get a copy of this message | ||
Jim Lucas wrote:
> Merlin Morgenstern wrote:
>> Hello Nathan,
>>
>> I upgraded to PHP 5, so I am using nativ support.
>>
>> Best regards, Merlin
>>
>> Nathan Nobbe schrieb:
>>> On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern
>>> <merlin_x@fastmail.fm
>>> <mailto:merlin_x@fastmail.fm>> wrote:
>>>
>>> Hi there,
>>>
>>> I am justing walking my first steps on XML and PHP. As I learned
>>> from a tutorial adressing is very simple:
>>>
>>> echo $xml->anbieter->immobilie->preise->kaufpreis;
>>>
>>>
>>> this is meaningless unless we know which xml library you are using. i
>>> believe you said youre running php4 earlier, right?
>>>
>>> so which xml library have you settled on?
>>>
>>> btw; php4 has DOMXML as a native extension, but the api is a bit
>>> cumbersome.
>>>
>>> -nathan
>>>
>
> Then how about and example of the commands you are using to convert your xml to php hash...
or object as it seems
>
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare