O Google Feed API adiciona tags XML que estão faltando?
-
15-11-2019 - |
Pergunta
Eu herdei um pedaço de javascript que usa a API de feed do Google.
Chama este feed e retorna XML da TypePad:
http://simplystated.realsimple.com/simplystated/adventures-in-chaos/rss.xml
Se eu visualizar este feed usando a fonte de visualização do Firefox, vejo o XML subjacente.Existe uma tag XML
Depois de chamar a API, quando eu olho para os resultados.xmldocument, noto que há um campo
A API de feed do Google normaliza o feed?
Solução
The way I understand it, you don't get the original feed; you get a feed from Google's servers. Google loads the original feed and then feeds it back to you. Since you can even change the feed format (like to JSON or XML) I think it's safe to assume that Google will always transform and normalize it before giving it back to you.