Forums

sitemap error - "XML document must have a top level element" (5 posts)

  1. eyes2005
    Member
    Posted 4 years ago #

    I made 2 files, sitemap.xml.gz and sitemap.xml, and directed my plug in to them, but i get this following message...

    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    -----------------------------------------------------------
    XML document must have a top level element. Error processing resource

    has anybody else had this?

    what is this message?
    what is the error,
    where have I messed up?

    Get back....

  2. TenguTech
    Member
    Posted 4 years ago #

    What plugin are you using?
    What version of WordPress?
    Do you get this error message from a web browser trying to load the sitemap, if so what browser and version?

    More details please :)

  3. eyes2005
    Member
    Posted 4 years ago #

    Plugin in using = google sitemaps (google-sitemap-generator.2.7.1)

    wordpress version = wordpress-2[1].2

    yea the error message came from the Browser when i clicked the sitemap.xml link (in my blog directory).
    -(I use internet explorer 6),
    -I also changed the permission numbers correctly.

  4. ubiz
    Member
    Posted 4 years ago #

    is this resolved? I am now having the same problem.

  5. drumlove
    Member
    Posted 4 years ago #

    Me too

    I tried modifying the sitemap.xml with <doc> tags and I atleast didnt get the error, but I didnt have any urls either, in fact just a blank screen with <doc />, which makes me assume the sitemap.php is generating top level tags???

    The debug shows all big list of notices on the post.php file, but no errors.

    When I initially ran the build, I had my sitemap.xml and zip in the sitemap directory, not the blog root. Didnt see they were supposed to go to the root until looking at FAQ, a little late... think that has anything to do with the errors?

    Should I delete everything and try reinstalling?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags