WordPress.org

Ready to get started?Download WordPress

Forums

how to convert an xml file to xmr (8 posts)

  1. kyrious
    Member
    Posted 4 years ago #

    I've just moved to a new host and downloaded all of my wordpress contents via tools settings export blog,but when I've tried to upload it to my new wordpress script it won't work displaying "invalid file"now I'm having problem importing my contents to my new wordpress script ..Is there a way to convert an xml script to an xmr so i can upload it to my new script

    [moderated fixed spelling in title]

  2. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    Let's clarify the process of importing or exporting XML files with correct terminoloy.

    1. From your old WordPress site, you run Tools > Export > All and saved the XML file to your computer.
    2. From your New WordPress site, you run Tools > Import > WordPress WXR and choose the XML file you had saved from #1 above.

    No conversion needed.

    P.S. during Tools > Import process, remember to check "Attach or include Media files" so that associated images will be imported along with your other posts, comments, etc.

  3. kyrious
    Member
    Posted 4 years ago #

    it won't work just can't upload my wordpress files

  4. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    it won't work just can't upload my wordpress files

    At what point in the process of importing does it stop working? What errors do you see? How large is the XML file you saved to your hard disk?

  5. kyrious
    Member
    Posted 4 years ago #

    it's only 600kb the message that i see is "Invalid file
    Please upload a valid WXR (WordPress eXtended RSS) export file.

  6. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    That's a small file. The problem is your XML file. Open up the XML file you had exported from previous WP account. It should have something like below. At the header

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. -->
    <!-- It contains information about your blog's posts, comments, and categories. -->
    <!-- You may use this file to transfer that content from one site to another. -->
    <!-- This file is not intended to serve as a complete backup of your blog. -->
    
    <!-- To import this information into a WordPress blog follow these steps. -->
    <!-- 1. Log in to that blog as an administrator. -->
    <!-- 2. Go to Tools: Import in the blog's admin panels (or Manage: Import in older versions of WordPress). -->
    <!-- 3. Choose "WordPress" from the list. -->
    <!-- 4. Upload this file using the form provided on that page. -->
    <!-- 5. You will first be asked to map the authors in this export file to users -->
    <!--    on the blog.  For each author, you may choose to map to an -->
    <!--    existing user on the blog or to create a new user -->
    <!-- 6. WordPress will then import each of the posts, comments, and categories -->
    <!--    contained in this file into your blog -->
    <rss version="2.0"
    	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.0/"
    >
    <channel>
    including all info like category, tags, etc to just before the first  <item>

    And the following at the bottom?

    </channel>
    </rss>

    If your XML file structure doesn't look something like above, then you need to re-export your XML from old site OR do a Database import via phpMyAdmin in your new site.

  7. donh
    Member
    Posted 3 years ago #

    The file I'm working with is the Theme Development Checklist. It's directly from WordPress.

    "Theme Unit Test
    This section correlates to a WordPress export (WXR) file that you can import into a WordPress installation to test your theme. Post titles in the test data correlate with section titles below.

    Test Procedure

    Download test data: http://svn.automattic.com/wpcom-themes/test-data.2008-12-22.xml
    Import test data into your WordPress install. Do this by going to Tools -> Import.
    Each "test" is a page or post described in the sections below."

    This file will not open. The message I keep getting is:
    "Invalid file
    Please upload a valid WXR (WordPress eXtended RSS) export file"

  8. Ventureweb
    Member
    Posted 3 years ago #

    I too am having the exact same issue. When attempting to import an old WordPress blogs content to the new development site I receive the error message "Invalid file. Please upload a valid WXR (WordPress eXtended RSS) export file."

    This makes no sense to me. The blog that I am exporting from is WordPress Version 2.8.6 and the new development site is WordPress 3.0.3. One query that I have, which I cannot find information on, is that I am attempting to upload this to the local version of the site. Is that an issue?

    Any help would be greatly appreciated.

    AJ

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags