Have you tried using the yahoo api with output=xml so that you get an
xml response? Then you could get your code working with xml that you
know is correct first, then move on to generating your own xml from
the PHP.
You will need to set the header correctly in your PHP so that it is
returned as XML.
Something like:
header('Content-type: application/xml; charset="utf-8"',true);
Then have your PHP spit out XML.
Beyond that I can't help much more since this is kind of outside the
scope of this group and is a broader PHP/XML/Javascript question.
--
Bill
--- In ycarousel@yahoogroups.com, "ruben.horemans"
<ruben.horemans@...> wrote:
>
> Hi,
>
> I'm trying for a week now to get this thing working with my own xml-
> file. The pictures just don't show up. Tried converting XML to JSON,
> PHP to JSON, it just doesn't work, although it outputs the same JSON in
> Firebug. My head is just spinning from all the JSON information on the
> internet.
>
> Is it possible to post a simple example with an xml-file that isn't
> generated through the yahoo api? The yahoo api generates the JSON just
> by adding a parameter, but how do you do this with a customized xml-
> file on your own webserver?
>
> And please don't send me links to JSON sites, because I've seen them
> all, mysql2json, xml2json, php2json,... The JSON it generates is not
> accepted by the ajax carousel example.
>
> An complete example would be great!
> Thanks in advance!
>