[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: >> >> >> Test/Query:Equal> >> >> >> >> >> I cannot figure out how to access these with simple xml. I am not >> opposed >> to a DOMDocument solution eit

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: Test/Query:Equal> I cannot figure out how to access these with simple xml. I am not opposed to a DOMDocument solution either. Would an

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

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

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

[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: > > > Test/Query:Equal> > > > > > I cannot figure out how to access these with simple xml. I am not opposed > to a DOMDocument solution either. > > Would