3 users online. Create an account or sign in to join them.Users

Search

I have a dynamic xml data source from Flickr that returns xml-rpc results with the actual photo results as xml with the < and > encoded as &lt; and &gt;. (Here is an example).

I’m not sure how to have Symphony parse what I want, short of replacing the entities with search/replace… and even then, I’m not sure if it would work. Is there a better way to do things?

You’re citing the test-function flickr.test.echo as an example. Are you sure all other methods will return the same malformed XML as well?

I have the dynamic datasource in Symphony set up, querying the Flickr api with the flickr.photos.search method, and it’s returning the same malformed xml. Certainly other people have used the Flickr api with Symphony before… right?

Yes, I am using a couple of functions from flickr.photosets.* and they’re all working perfectly. On the first glimpse, flickr.photos.search seems to be working fine too.

Here is an example query: http://api.flickr.com/services/rest/?api_key=NNN&format=xmlrpc&method=flickr.photos.search&tags=nigelewan:tie=10&tag_mode=any

And here is the xml response. The useful part is still buried in the string node with entities encoded.

Ah, the XML you’re seing is only the XML-RPC-Wrapping but not part of the returned message. This means the problem lies in the parameter &format=xmlrpc. Remove it and it should be working fine.

Oh! I guess I just assumed I needed to include a format choice when I made the api call. Thanks so much for your help!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details