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

  • SEARCH
  • Home
  • 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 8160443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:14:35+00:00 2026-06-06T18:14:35+00:00

Below is the code i am using to create a video list of my

  • 0

Below is the code i am using to create a video list of my movies. for some reason i cant get the media:content to work.

This is what I have now

$xml_output .= "\t<media:content url='" . $row['name'].".m4v" . " type='video/mpg' />\n";

Here is the whole thing

    $xml_output = "<?xml version=\"1.0\"?>\n"; 
    $xml_output .= "<channel>\n"; 
    $xml_output .= "\t\t<title>Ellucid Movies</title>\n"; 
$xml_output .= "\t\t<link>http://google.com</link>\n"; 
 for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){ 
$row = mysql_fetch_assoc($resultID); 
    $xml_output .= "\t<item>\n"; 
    $xml_output .= "<title>" . $row['name'] .".m4v" . "</title>\n"; 
    $xml_output .= "<link>" . $row['link'] . "</link>\n"; 
$xml_output .= "\t<media:content url='" . $row['name'].".m4v" . " type='video/mpg' />\n";
$xml_output .= "\t</item>\n"; 
} 

$xml_output .= "</channel>"; 

echo $xml_output; 

when i comment out the media content the xml works as expected… when i add the media it does nothing.

  • 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-06-06T18:14:36+00:00Added an answer on June 6, 2026 at 6:14 pm

    You are adding a namespaced element

    <media:content …
    

    but did not declare the namespace anywhere. Add

      xmlns:media="http://search.yahoo.com/mrss"
    

    to your root element.

    Also see my answer to Assigning xml generated by a while loop to a variable on how to use DOM for generating XML with DOM.

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

Sidebar

Related Questions

Using below code, I am getting this error: NSTask: Task create for path '/Users/media/Library/Developer/Xcode/DerivedData/Manager-gnixeptcszdoubbnfcncumzypwge/Build/Products/Debug/lib'
I can get the list of country names using below code, (copied from somewhere
The pasted below code i am using to create dropdown list and java script
I am using below code to create a reminder in Google calendar (using Google
I am using jquery to create a custom dropdown with the code below. I
I'm trying to create a custom drop down and using the code below it
Okay, so I've got the following code shown below to create a dialog using
I am using below code to create three tab in activity but it gives
I am using below code to to create Contact Service and to Validate login
Hi all I am using below code to create an event : EKEvent *oneLabEvent

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.