0

I'm working with the data api. I want to retrieve data from a specific video. That works with JSON in PHP. But I need to do that in Qt, that's why XML is easier because I have done it before and its implented in Qt itself. QJson, on the other hand, is a third party "plugin".

So I wonder if there is a way that I can get the data in XML instead of JSON?

If not I was thinking of converting the JSON to XML in PHP, then request that link in Qt.

(the json data I want to retrieve in XML)

tshepang
  • 12,111
  • 21
  • 91
  • 136

1 Answers1

0

Just remove alt=json from query string

https://gdata.youtube.com/feeds/api/videos/xyF6s6F2tbg?v=2

Miroslav
  • 1,960
  • 1
  • 13
  • 26
  • cannot believe that I didn't think of that. I replaced the json with xml never tought to just remove it. Thank you! –  Oct 04 '12 at 12:08