Re: Render Xml

2009-07-16 Thread paulos nikolo
Ty Alexandru for your help.I will use a little different block of code as i tested it and it works fine.Beow is my code.where i take each geoname's fields and save them in my db. for ( $i = 1; $i <= 4; $i += 1) { /** total results**/ $root=$xml->children[0]->children[0]->name;

Re: Render Xml

2009-07-15 Thread Alexandru Ciobanu
On 07/14/2009 04:29 PM, Paulos23 wrote: > > How i can take these data from the array[] and print them like this > for example? > name:Barcelona > lat:... > lng... > Given $i is the name of your array. foreach($i['Geoname'] as $parent){ foreach($parent as $key => $child){

Render Xml

2009-07-14 Thread Paulos23
Hi peeps, I have spent much time in finding the proper solution for my problem.To be more specific i am parsing an xml document from an external site(using httpSocket) which contains some data.I have managed to parse it and when i do pr($parsed_xml) or debug ($parsed_xml) i get an array which cont

Re: Render XML

2009-02-10 Thread mscdex
mscdex wrote: >$post = $this->Post->getNormalViewData(); Sorry, that should be: $post = $this->Post->getNormalViewData($id); You get the idea ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Render XML

2009-02-10 Thread czarcrab
ing-json-in-cakephp-12/ On Feb 10, 11:38 pm, Alfredo Quiroga-Villamil wrote: > This should be simple, yet for some reason can't find how to do it. > > I need to render XML. > > What is the correct way to accomplish this? > > Thanks in advance, > > Alfredo --~--~---

Re: Render XML

2009-02-10 Thread mscdex
Alfredo Quiroga-Villamil wrote: > This should be simple, yet for some reason can't find how to do it. > > I need to render XML. > > What is the correct way to accomplish this? I use XML in my Cake application and here is what I've done: In my routes.php,

Re: Render XML

2009-02-10 Thread Alfredo Quiroga-Villamil
eed it in the future and if this is even the most recommended approach for this kind of situations. Thanks in advance, Alfredo On Tue, Feb 10, 2009 at 11:38 PM, Alfredo Quiroga-Villamil wrote: > This should be simple, yet for some reason can't find how to do it. > > I need to

Render XML

2009-02-10 Thread Alfredo Quiroga-Villamil
This should be simple, yet for some reason can't find how to do it. I need to render XML. What is the correct way to accomplish this? Thanks in advance, Alfredo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: how to render xml data (change content type) --help! ahhh

2006-11-28 Thread [EMAIL PROTECTED]
and in my layout file > (xml.xml) i try to set the header content type, but it won't change. > i also see a white space that is entered on the page before the > content_for_layout is returned. > i'm not sure if one problem is leading to the other. but i need some > sort of

how to render xml data (change content type) --help! ahhh

2006-11-28 Thread [EMAIL PROTECTED]
also see a white space that is entered on the page before the content_for_layout is returned. i'm not sure if one problem is leading to the other. but i need some sort of way to render xml in a view. please let me know if you may have run over this speed bump or if i can provide more info on the is