سؤال

لقد ورثت قطعة من جافا سكريبت تستخدم API تغذية Google. يستدعي هذا التغذية وإرجاع XML من TypePad: http://simplystated.realsimple.com/simplystated/aventures-in-chaos/rss.xml إذا قمت بعرض هذه الأعلاف باستخدام مصدر عرض Firefox، أرى XML الأساسي.هناك علامة XML.

بعد استدعاء API، عندما أنظر إلى النتائج. لاحظت أن هناك حقل <مؤلف> لم يكن هناك من قبل.

هل تقوم Google Feed API بتطبيع الأعلاف؟

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top