Hi guys,

I'm having some issues with the controller tests and working with my
controllers which return xml data.

My controller path is something like:
http://example.com/controller/returnXML/sample.xml

The controller's returnXML function will render a view with full XML
data in it.

In our routes.php we set:
Router::parseExtensions();

Now, in my test case I try to:
$result = $this->testAction( '/controller/returnXML/sample.xml' );

But I always get an error in my browser of:
XML Parsing Error: no element found

I believe this is due to the parseExtensions class writing the header
as being xml.

Does anyone know how I can get around this issue?

thanks,
Tony.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to