WordPress.org

Ready to get started?Download WordPress

Forums

change normal XML format to WXR Format (1 post)

  1. khurrmi
    Member
    Posted 2 years ago #

    i have a xml file and i want to transform that file into wordpress extended RSS format,

    Below is the format of XML file

    <articles>
    <article id="1240xxxx" timestamp="April 27, 2009, 8:26 am" published="1">
        <title>Theme Parks in Tenerife</title>
        <pageName>theme-parks-in-tenerife-408</pageName>
        <imageFile>blogthemeparkstenerife.jpg</imageFile>
        <imageAlt>Theme Parks in Tenerife</imageAlt>
        <content>
            <p>Anyone taking a
                <a href="xxxxxxxxxxxxxxx">holiday in Tenerife</a>.
            </p>
        </content>
        <summary>Theme Parks in Tenerife offer an alternative to the traditional beach holiday, providing entertainment for families.</summary>
        <tags>
            <tag>tenerife</tag>
            <tag>holidays</tag>
            <tag>parks</tag>
            <tag>beaches</tag>
            <tag>island</tag>
        </tags>
    </article>

    i need script and suggestions, i dont know how to format above xml to WXR format,
    actually i want to import that XML to wordpress, and also suggest some best practices if the size of the file huge

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags