Re: Adressing XML Objects

From: Date: Thu, 08 Jan 2009 23:02:18 +0000
Subject: Re: Adressing XML Objects
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-285764@lists.php.net to get a copy of this message
Hello nathan, I am unsing simplexml as it looks really simple :-) However, I could still not figure out how to adress data inside tags with attributes. For example: <anhang location="INTERN" gruppe="TITELBILD"> <data>bla blub</data> $xml->anhang[intern][titelbild]->data will not work. Thank you for any hint. Best regards, Merlin Merlin Morgenstern schrieb:
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


« previous php.general (#285764) next »