Re: XML and :

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

 



Merlin Morgenstern wrote:

> Hi there,
> 
> I am trying to pars an XML file with php. This works if the xml tag
> looks like this: <anbieternr>88</anbieternr>
> In that case I retrieve the info: $xml->anbieternr
> 
> But now the tag looks different like this:
> <imo:anbieternr>88</imo:anbieternr>
> 
> The command $xml->imo:anbieternr does not work in that case.
> 
> Has somebody an idea how to adress this?

When used like that 'imo' becomes a name-space. I don't know what sort
of parsing you're doing, but typically you would need to set that
first.



-- 
Per Jessen, Zürich (-1.5°C)


--
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