2 answers
0 votes
dispaly xml file
Hello Cake Experts,
I want to display xml file in broswer: for example: http://www.mysite.com/myfile.xml
I know there is code snippet on net:
App::import('Xml');
$file = "filename.xml";
$parsed_xml =& new XML($file);
$parsed_xml =...
2 answers
0 votes
How can I read a compressed xml.gz file?
I have a 12MB compressed xml.gz file containing merchant product data, it uncompresses to 80+ MB, is there a way I can read this file in as is using:
$parsed_xml =& new XML($file);
$raw = $parsed_xml->toArray();
0 answers
0 votes
How to tell a model to use XML as source for data & to write and update datasets in XML
Hello my fellow Cakemasters!
I'm currently searching for a way to use an XML file for dynamix content. I can't find a good tutorial through Google for the following use case:
An XML file should be the source and target for reading and updating...
1 answer
0 votes
Xml Core - toArray() PHP 5.2.12 help
Hi,
I am running a LAMP dev environment PHP 5.1.6 and Xml-toArray() works fine on valid XML.
I uploaded to my client's server running PHP 5.2.12 and the same XML is parsed incorrectly.
It returns an array but with only 1 index of partial elements....
1 answer
0 votes
How to ouput XML (for a sitemap)
I'm following this tutorial for creating automated sitemaps in CakePHP. Everything is easy, but I'm not able to output XML. The controller looks like
function sitemap ()
{
Configure::write ('debug', 0);
$cats =... 1 answer
0 votes
Missing Method/Controller errors returned in XML? Possible?
I am implementing a web service as part of an app I am building and would like all errors returned in XML when the initial request is XML
I found this...
2 answers
0 votes
Memory Problem with XML
Hello everybody,
i have a memory leak in my shellscript for XML import.
i'm running a price comparision and want to import large xml files from different shops as a cron.
shell script in pseudo code:
find all shops
foreach shop do {
... 0 answers
0 votes
XML RPC Webservice problem
I have problem with XML RPC and bugzilla and cakephp using "http://bakery.cakephp.org/articles/view/webservice-behavior". I can normally login in bugzilla and returns me a id of user. and then i wont get first bug and i have error like...
0 answers
0 votes
Web service Controller File exists, but CakePhp giving error
HI! I'm trying to create the web service in the cakePhp. I'm new to cakePhp and only recently start working on it. I found a useful tutorial at http:www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-services-in-cakephp-12-really-easy/...
0 answers
0 votes
How to improve view cache for XML
Hi,
I want to improve caching for XML files in Cake. I tried the normal view caching but is is not honoring pagination params and does not sends out the right content-type.
I know have this in app_controller. It checks if the reuest accepts XML...