Re: Adressing XML Objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx <mailto:merlin_x@xxxxxxxxxxx>> 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux