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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:11:45+00:00 2026-06-12T11:11:45+00:00

I need to create the below xml using builder, how would I do it?

  • 0

I need to create the below xml using builder, how would I do it?

<rss xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.2/">
  <channel>
    <title>Your Site Title</title>
    <link>http://example.com</link>
    <pubDate>Tue, 02 Oct 2012 13:52:46 +0000</pubDate>
    <description />
    <language>en-US</language>
    <wp:wxr_version>1.2</wp:wxr_version>
    <wp:author>
      <wp:author_id>608422065</wp:author_id>
      <wp:author_login>xxx@hotmail.com</wp:author_login>
      <wp:author_email>xxx@hotmail.com</wp:author_email>
      <wp:author_display_name><![CDATA[abc123]]></wp:author_display_name>
      <wp:author_first_name><![CDATA[abc123]]></wp:author_first_name>
      <wp:author_last_name><![CDATA[abc123]]></wp:author_last_name>
    </wp:author>
    <wp:category>
      <wp:cat_name><![CDATA[null - null]]></wp:cat_name>
      <wp:category_nicename>null-null</wp:category_nicename>
      <wp:category_parent />
    </wp:category>
</channel>
</rss>
  • 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-12T11:11:46+00:00Added an answer on June 12, 2026 at 11:11 am

    This should get you started:

    xml = Builder::XmlMarkup.new
    xml.rss "xmlns:excerpt" => "http://...", "xmlns:content" => "http://..." do
      xml.channel do
        xml.title "Your Site Title"
        xml.description
        xml.wp :wxr_version, "1.2"
        xml.wp :author do
          xml.wp :author_id, "608422065"
        end
      end
    end
    

    will produce

    <rss xmlns:excerpt="http://..." xmlns:content="http://...">
      <channel>
        <title>Your Site Title</title>
        <description />
        <wp:wxr_version>1.2</wp:wxr_version>
        <wp:author>
          <wp:author_id>608422065</wp:author_id>
        </wp:author>
      </channel>
    </rss>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create program that creates a XML schema like below using System.Xml.XmlSchema
i can use an XML file like below <set xmlns:android=http://schemas.android.com/apk/res/android android:interpolator=@android:anim/decelerate_interpolator> <translate android:fromXDelta=100% android:toXDelta=0%
I am using XmlReader.Create to retrieve data from an RSS xml file. Then I
My input xml would be like this with json namespaces.. <json:object xmlns:json=http://www.ibm.com/xmlns/prod/2009/jsonx xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance> <json:object
Need to create a custom DNS name server using C which will check against
I just need to create Web Deployement package using TFS build and don't want
I need to create a DOT graph on the basis of the following XML:
I need help with this question. I'm using the camel-http component as shown here
Below is the style of header I need to create. I am expected to
I'm working on some PHP to create XML from a database using the DOM

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.