Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7631835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:27:31+00:00 2026-05-31T06:27:31+00:00

I have the following XML: <?xml version=’1.0′ encoding=’UTF-8′ ?> <feed xmlns=’http://www.w3.org/2005/Atom’ xmlns:media=’http://search.yahoo.com/mrss/’ xmlns:openSearch=’http://a9.com/-/spec/opensearchrss/1.0/’ xmlns:gd=’http://schemas.google.com/g/2005′

  • 0

I have the following XML:

<?xml version='1.0' encoding='UTF-8' ?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/'
xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd='http://schemas.google.com/g/2005'
xmlns:yt='http://gdata.youtube.com/schemas/2007'>
    <id>http://gdata.youtube.com/feeds/api/users/djwezleyj/uploads</id>
    <updated>2012-03-12T16:22:02.672Z</updated>
    <category scheme='http://schemas.google.com/g/2005#kind'
    term='http://gdata.youtube.com/schemas/2007#video' />
    <title type='text'>Uploads by djwezleyj</title>
    <logo>http://www.youtube.com/img/pic_youtubelogo_123x63.gif</logo>
    <link rel='related'
    type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/users/djwezleyj'
    />
    <link rel='alternate' type='text/html' href='https://www.youtube.com/user/djwezleyj/videos'
    />
    <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml'
    href='https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads' />
    <link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml'
    href='https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads/batch'
    />
    <link rel='self' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads?start-index=1&amp;max-results=25'
    />
    <author>
        <name>djwezleyj</name>
        <uri>https://gdata.youtube.com/feeds/api/users/djwezleyj</uri>
    </author>
    <generator version='2.1' uri='http://gdata.youtube.com'>YouTube data API</generator>
    <openSearch:totalResults>2</openSearch:totalResults>
    <openSearch:startIndex>1</openSearch:startIndex>
    <openSearch:itemsPerPage>25</openSearch:itemsPerPage>
    <entry>
        <id>http://gdata.youtube.com/feeds/api/videos/mr_2Qob4egs</id>
        <published>2010-11-29T08:40:45.000Z</published>
        <updated>2010-11-29T08:42:38.000Z</updated>
        <category scheme='http://schemas.google.com/g/2005#kind'
        term='http://gdata.youtube.com/schemas/2007#video' />
        <category scheme='http://gdata.youtube.com/schemas/2007/categories.cat'
        term='Entertainment' label='Entertainment' />
        <category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat'
        term='Ferry15' />
        <category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat'
        term='plusbanners' />
        <title type='text'>Black Hole Tour South Africa.mp4</title>
        <content type='text' />
        <link rel='alternate' type='text/html' href='https://www.youtube.com/watch?v=mr_2Qob4egs&amp;feature=youtube_gdata'
        />
        <link rel='http://gdata.youtube.com/schemas/2007#video.responses' type='application/atom+xml'
        href='https://gdata.youtube.com/feeds/api/videos/mr_2Qob4egs/responses'
        />
        <link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml'
        href='https://gdata.youtube.com/feeds/api/videos/mr_2Qob4egs/related' />
        <link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html'
        href='https://m.youtube.com/details?v=mr_2Qob4egs' />
        <link rel='self' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads/mr_2Qob4egs'
        />
        <author>
            <name>DJWezleyJ</name>
            <uri>https://gdata.youtube.com/feeds/api/users/DJWezleyJ</uri>
        </author>
        <gd:comments>
            <gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='https://gdata.youtube.com/feeds/api/videos/mr_2Qob4egs/comments'
            countHint='0' /></gd:comments>
        <media:group>
            <media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category>
            <media:content url='https://www.youtube.com/v/mr_2Qob4egs?version=3&amp;f=user_uploads&amp;app=youtube_gdata'
            type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full'
            duration='16' yt:format='5' />
            <media:content url='rtsp://v7.cache8.c.youtube.com/CigLENy73wIaHwkLeviGQva_mhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp'
            type='video/3gpp' medium='video' expression='full' duration='16' yt:format='1'
            />
            <media:content url='rtsp://v4.cache8.c.youtube.com/CigLENy73wIaHwkLeviGQva_mhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp'
            type='video/3gpp' medium='video' expression='full' duration='16' yt:format='6'
            />
            <media:description type='plain' />
            <media:keywords>Ferry15, plusbanners</media:keywords>
            <media:player url='https://www.youtube.com/watch?v=mr_2Qob4egs&amp;feature=youtube_gdata_player'
            />
            <media:thumbnail url='http://i.ytimg.com/vi/mr_2Qob4egs/0.jpg' height='360'
            width='480' time='00:00:08' />
            <media:thumbnail url='http://i.ytimg.com/vi/mr_2Qob4egs/1.jpg' height='90'
            width='120' time='00:00:04' />
            <media:thumbnail url='http://i.ytimg.com/vi/mr_2Qob4egs/2.jpg' height='90'
            width='120' time='00:00:08' />
            <media:thumbnail url='http://i.ytimg.com/vi/mr_2Qob4egs/3.jpg' height='90'
            width='120' time='00:00:12' />
            <media:title type='plain'>Black Hole Tour South Africa.mp4</media:title>
            <yt:duration seconds='16'
            />
        </media:group>
        <yt:statistics favoriteCount='0' viewCount='169' />
    </entry>
    <entry>
        <id>http://gdata.youtube.com/feeds/api/videos/Nk6JOCqzK18</id>
        <published>2009-01-16T08:20:24.000Z</published>
        <updated>2010-07-24T02:58:53.000Z</updated>
        <category scheme='http://schemas.google.com/g/2005#kind'
        term='http://gdata.youtube.com/schemas/2007#video' />
        <category scheme='http://gdata.youtube.com/schemas/2007/categories.cat'
        term='Entertainment' label='Entertainment' />
        <category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat'
        term='54827575663' />
        <category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat'
        term='30710' />
        <title type='text'>The Renegade DJs at Club Traxx - 12 December 2008</title>
        <content type='text'>http://www.facebook.com/group.php?gid=6763068443&amp;ref=ts For more info
            on the Renegades</content>
        <link rel='alternate' type='text/html' href='https://www.youtube.com/watch?v=Nk6JOCqzK18&amp;feature=youtube_gdata'
        />
        <link rel='http://gdata.youtube.com/schemas/2007#video.responses' type='application/atom+xml'
        href='https://gdata.youtube.com/feeds/api/videos/Nk6JOCqzK18/responses'
        />
        <link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml'
        href='https://gdata.youtube.com/feeds/api/videos/Nk6JOCqzK18/related' />
        <link rel='self' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads/Nk6JOCqzK18'
        />
        <author>
            <name>DJWezleyJ</name>
            <uri>https://gdata.youtube.com/feeds/api/users/DJWezleyJ</uri>
        </author>
        <gd:comments>
            <gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='https://gdata.youtube.com/feeds/api/videos/Nk6JOCqzK18/comments'
            countHint='0' /></gd:comments>
        <media:group>
            <media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category>
            <media:content url='https://www.youtube.com/v/Nk6JOCqzK18?version=3&amp;f=user_uploads&amp;app=youtube_gdata'
            type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full'
            duration='113' yt:format='5' />
            <media:content url='rtsp://v5.cache3.c.youtube.com/CigLENy73wIaHwlfK7MqOIlONhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp'
            type='video/3gpp' medium='video' expression='full' duration='113' yt:format='1'
            />
            <media:content url='rtsp://v2.cache7.c.youtube.com/CigLENy73wIaHwlfK7MqOIlONhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp'
            type='video/3gpp' medium='video' expression='full' duration='113' yt:format='6'
            />
            <media:description type='plain'>http://www.facebook.com/group.php?gid=6763068443&amp;ref=ts For more info
                on the Renegades</media:description>
            <media:keywords>54827575663, 30710</media:keywords>
            <media:player url='https://www.youtube.com/watch?v=Nk6JOCqzK18&amp;feature=youtube_gdata_player'
            />
            <media:thumbnail url='http://i.ytimg.com/vi/Nk6JOCqzK18/0.jpg' height='360'
            width='480' time='00:00:56.500' />
            <media:thumbnail url='http://i.ytimg.com/vi/Nk6JOCqzK18/1.jpg' height='90'
            width='120' time='00:00:28.250' />
            <media:thumbnail url='http://i.ytimg.com/vi/Nk6JOCqzK18/2.jpg' height='90'
            width='120' time='00:00:56.500' />
            <media:thumbnail url='http://i.ytimg.com/vi/Nk6JOCqzK18/3.jpg' height='90'
            width='120' time='00:01:24.750' />
            <media:title type='plain'>The Renegade DJs at Club Traxx - 12 December 2008</media:title>
            <yt:duration
            seconds='113' />
        </media:group>
        <gd:rating average='5.0' max='5' min='1' numRaters='1' rel='http://schemas.google.com/g/2005#overall'
        />
        <yt:statistics favoriteCount='0' viewCount='106' />
    </entry>
</feed>

I am having difficulty accessing the following variables (inside each “Entry” instance)

  • content
  • media:group —-> media:description

The code I am using to return the JSON object from the You Tube API is:

<script type="text/javascript">
var playListURL = 'https://gdata.youtube.com/feeds/api/users/djwezleyj/uploads?v=2&alt=json&callback=?';
var videoURL= 'http://www.youtube.com/watch?v=';
$.getJSON(playListURL, function(data) {
    var list_data="";
    $.each(data.feed.entry, function(i, item) {
        var feedTitle = item.title.$t;
        var content = item.content.$t;
        var feedURL = item.link[1].href;
        var fragments = feedURL.split("/");
        var videoID = fragments[fragments.length - 2];
        var url = videoURL + videoID;
        var thumb = "http://img.youtube.com/vi/"+ videoID +"/default.jpg";
        list_data += '<li><a href="'+ url +'" title="'+ feedTitle +'"><img alt="'+ feedTitle+'" src="'+ thumb +'"/></a><div>'+ feedTitle + '<br>' + content + '</div></li>';
    });
    $(list_data).appendTo(".cont");
});
</script>

The content variable is returned as “Undefined”

Alternatively, I have not had any luck accessing namepace variables in the Media:Group namespace

Any ideas on how I could resolve this?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:27:33+00:00Added an answer on May 31, 2026 at 6:27 am

    First entry content is empty. Media:Group accessed by data.feed.entry.media$group. Use FireBug or Developer Tools to examine YouTube response (JSON not XML).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML document <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' xmlns:issues='http://schemas.google.com/projecthosting/issues/2009' gd:etag='W/DEAERH47eCl7ImA9WhZTFEQ.'><id>http://code.google.com/feeds/issues/p/chromium/issues/full/921</id><published>2008-09-03T22:51:22.000Z</published><updated>2011-03-19T01:05:05.000Z</updated><title>Incorrect rendering</title><content
I have following XML schema: <?xml version=1.0 encoding=UTF-8 standalone=no?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element name=content type=contentType/>
I have the following XML: <?xml version=1.0 encoding=UTF-8?> <gnm:Workbook xmlns:gnm=http://www.gnumeric.org/v10.dtd xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://www.gnumeric.org/v9.xsd> <office:document-meta xmlns:office=urn:oasis:names:tc:opendocument:xmlns:office:1.0
I have the following the layout file <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:app=http://schemas.android.com/apk/res/com.company android:layout_width=fill_parent
I'm after the following XML serialization output: <?xml version=1.0?> <Message> <Version>1.0</Version> <Body> <ExampleObject xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
i have following xml file as input .... <?xml version=1.0 encoding=ISO-8859-1?> <T0020 xsi:schemaLocation=http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd
I have the following simplified XML: <?xml version="1.0" encoding="UTF-8" ?> <MATMAS05> <IDOC BEGIN="1"> <E1MARAM
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8" ?> <INVOIC02> <IDOC BEGIN="1">
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8"?> <ExportData> <TransportHeader> <Timestamp>2011-01-16 06:00:33</Timestamp>
I have the following XML: <?xml version=1.0 encoding=UTF-8?> <game> <name>Space Blaster</name> <description></description> <version>1</version> <fullscreen>false</fullscreen>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.