0

Broken XML Output

Ive tested this with a few yql queries. but none of these seem to work.

http://query.yahooapis.com/v1/public/yql?q...&format=xml

and

http://query.yahooapis.com/v1/public/yql?q...&format=xml

Both of these are failing at the very second line... and load fine in the Console.

What gives... how can i this kind of simple JSON to XML query to work?

by
2 Replies
  • It's the "y:" elements that are causing the problems. They are really only meant for Pipes internal use in producing RSS output. When they are output via the YQL REST URL the consumer of the XML is looking for a namespace called "y", which isn't going to be there. For your first pipe you could simply ditch the Location Builder module. For the second pipe you could use a Fetch Data module and rename elements as required.
    0
  • QUOTE (hapdaniel @ Feb 16 2009, 09:15 AM) <{POST_SNAPBACK}>
    It's the "y:" elements that are causing the problems. They are really only meant for Pipes internal use in producing RSS output. When they are output via the YQL REST URL the consumer of the XML is looking for a namespace called "y", which isn't going to be there. For your first pipe you could simply ditch the Location Builder module. For the second pipe you could use a Fetch Data module and rename elements as required.


    Thanks a lot for the advice there.

    I dont know why they cant just fully document the pipes output formatting.. theres no way to look up what elements a pipe will keep when translating from the internal xml to rss, ical, kml, etc... the only sure thing is using JSON to dump the lot out... guess ill just have to ad a lot more rename & regex to my pipe since i was hoping to use the KML output but ill have to construct that structure manually instead... suppopse it does offer more control which is a plus

    Thanks again.
    0

Recent Posts

in YQL