[PHP] Re: SimpleXML or DOMDocument help

2009-12-10 Thread Michael Alaimo
Michael Alaimo wrote: Hello All, I have an XML document that has elements as such: Query:Expression Query:ResourceID Query:EqualTest/Query:Equal /Query:ResourceID /Query:Expression I cannot figure out how to access these with simple xml.

[PHP] Re: SimpleXML or DOMDocument help

2009-12-09 Thread Shawn McKenzie
Michael Alaimo wrote: Hello All, I have an XML document that has elements as such: Query:Expression Query:ResourceID Query:EqualTest/Query:Equal /Query:ResourceID /Query:Expression I cannot figure out how to access these with simple

[PHP] Re: SimpleXML or DOMDocument help

2009-12-09 Thread Shawn McKenzie
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?

[PHP] Re: SimpleXML or DOMDocument help

2009-12-09 Thread Shawn McKenzie
Shawn McKenzie wrote: 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:

[PHP] Re: SimpleXML or DOMDocument help

2009-12-09 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: 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; } || |

Re: [PHP] Re: SimpleXML or DOMDocument help

2009-12-09 Thread Michael A. Peters
Shawn McKenzie wrote: Michael Alaimo wrote: Hello All, I have an XML document that has elements as such: Query:Expression Query:ResourceID Query:EqualTest/Query:Equal /Query:ResourceID /Query:Expression I cannot figure out how to access these