CDATA with Zend_Rest_Client

5 messages Options
Embed this post
Permalink
mark-ibuildings

CDATA with Zend_Rest_Client

Reply Threaded More More options
Print post
Permalink
The Zend_Rest_Client (version 1.5.2) doesn't support CDATA in it's result, I just made a small change in the code so it works but was wondering if this might be fixed already or will be in the future?

The change: Add the LIBXML_NOCDATA param to the simplexml_load_string() function in \Rest\Client\Result.php.
James Dempster

Re: CDATA with Zend_Rest_Client

Reply Threaded More More options
Print post
Permalink
If you have access to the Issue Tracker then it would be helpful if you could create an issue, and even attach a patch file if it's not too much trouble.

Thanks,
/James Dempster

On Tue, Jun 3, 2008 at 9:01 AM, mark-ibuildings <[hidden email]> wrote:

The Zend_Rest_Client (version 1.5.2) doesn't support CDATA in it's result, I
just made a small change in the code so it works but was wondering if this
might be fixed already or will be in the future?

The change: Add the LIBXML_NOCDATA param to the simplexml_load_string()
function in \Rest\Client\Result.php.
--
View this message in context: http://www.nabble.com/CDATA-with-Zend_Rest_Client-tp17618216p17618216.html
Sent from the Zend Web Services mailing list archive at Nabble.com.


weierophinney

Re: CDATA with Zend_Rest_Client

Reply Threaded More More options
Print post
Permalink
In reply to this post by mark-ibuildings
-- mark-ibuildings <[hidden email]> wrote
(on Tuesday, 03 June 2008, 01:01 AM -0700):
>
> The Zend_Rest_Client (version 1.5.2) doesn't support CDATA in it's result, I
> just made a small change in the code so it works but was wondering if this
> might be fixed already or will be in the future?
>
> The change: Add the LIBXML_NOCDATA param to the simplexml_load_string()
> function in \Rest\Client\Result.php.

Please place an issue in the tracker for this.

Thanks!

--
Matthew Weier O'Phinney
Software Architect       | [hidden email]
Zend Framework           | http://framework.zend.com/
James Dempster

Re: CDATA with Zend_Rest_Client

Reply Threaded More More options
Print post
Permalink
Marks created one. :-)
http://framework.zend.com/issues/browse/ZF-3373

/James Dempster

On Tue, Jun 3, 2008 at 12:56 PM, Matthew Weier O'Phinney <[hidden email]> wrote:
-- mark-ibuildings <[hidden email]> wrote
(on Tuesday, 03 June 2008, 01:01 AM -0700):
>
> The Zend_Rest_Client (version 1.5.2) doesn't support CDATA in it's result, I
> just made a small change in the code so it works but was wondering if this
> might be fixed already or will be in the future?
>
> The change: Add the LIBXML_NOCDATA param to the simplexml_load_string()
> function in \Rest\Client\Result.php.

Please place an issue in the tracker for this.

Thanks!

--
Matthew Weier O'Phinney
Software Architect       | [hidden email]
Zend Framework           | http://framework.zend.com/

alexlavr

Re: CDATA with Zend_Rest_Client

Reply Threaded More More options
Print post
Permalink
In reply to this post by mark-ibuildings
Thanks for the tip. Just an into the problem trying to use Zend Rest Client with Zoho API. This made CDATA work:
$this->_sxml = simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA);