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 6050229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:39:55+00:00 2026-05-23T07:39:55+00:00

I have a .out file which has xml content like this. <header stub> <article

  • 0

I have a .out file which has xml content like this.

<header stub>
    <article type="audio">
        <addedDate>2010-03-11 05:11:57</addedDate>
        <thumbnail>http://fgsdfff/4588/thumbnail_9.jpg</thumbnail>
        <asset="blarga.mp3" addedDate="2009-01-07 01:48:37">
            <size>3289048</size>
            <duration>206000</duration>
            <mime_type>audio/mpeg</mime_type>
        </asset>
    </article>
</footer stub>
  1. I have to add <?xml version="1.0"?> and </xml> at the start of the xml and at the end respectively.
  2. I have to replace <header stub> and </footer stub> with <channel> and </channel> tags respectively.
  3. You might have noticed the XML is not well formed in the <asset> tag. It has to be like <asset url="blarga.mp3" addedDate="2009-01-07 01:48:37">. How do I add the url attribute?
  4. In the thumbnail tag, i have to remove _9 from the jpg’s name.

And finally, i have to convert the .out to .xml file.

Please help me with these

  • 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-23T07:39:56+00:00Added an answer on May 23, 2026 at 7:39 am
    $content = file_get_content OR mysql_query;//"YOUR XML CONTENT FROM FILE OR MYSQL";
    $content = "<?xml version="1.0"?>" . $content . "</xml>";
    $content = str_replace("<header stub>", "<channel>", $content);
    $content = str_replace("</footer stub>", "</channel>", $content);
    $content = str_replace("<asset=", "<asset url=", $content);
    $content = str_replace("thumbnail_9.jpg", "thumbnail.jpg", $content);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a XML file which has a node which is commented out. I
I have a project directory which has an .acignore file containing: out/* The project
I have a questions.xml file which has a list of questions for my quiz,
I have a big (1.9 GB) XML file which has data I want to
I have an xml file right now which has a TableLayout within a LinearLayout.
I have a simple cpp file which uses GIO. I have stripped out everything
I have an xml file where I need to comment out a whole piece
I'm trying to work this out. In my project, i have a file called
I have a PHP file which produces an Xml sitemap based on data which
need help to read xml file. i have one xml file which i want

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.