Re: SimpleXML or DOMDocument help

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

 



Please keep this on list.

The URI for the namespace is important.  Something like (not tested):

|  ||// use URI for Query namespace|
|  foreach ($xml->children('http://www.example.com/something') as $Query) {
      echo $Query->Where;
  }
||
|
Michael Alaimo wrote:
>> What's the entire XML document?  You need a xmlns declaration as Query
>> is a namespace.
>>     
> The document is valid XML.  xml_parse_into_struct returns an array with
> all of the values.  Its just so much work to get it to work.
>
> SimpleXML wont let me access $xml->Query->{Query:Where}. for example
>
>   
>> --
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
>>
>>     
>
>
>
>
>   

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