Question

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)

Was it helpful?

Solution

Just remove alt=json from query string

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top