Support » Fixing WordPress » XML erorrs while validating – Please Help!!!!

  • Resolved Webmeba

    (@webmeba)


    I keep getting XML parsing errors when I try to validate my blog (test.webmeba.com)

    Errors such as….
    # Error Line 227, Column > 80: XML Parsing Error: Couldn’t find end of Start Tag a line 227.

    …”><h2>aaaaaa</h2></…


    # Error Line 227, Column > 80: XML Parsing Error: Opening and ending tag mismatch: h2 line 227 and a.

    …”><h2>aaaaaa</h2></…

    Each time I write a new post, a new error appears?

    Is there a problem in my loop?

    Help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ve got HTML errors up the wazoo.

    Most frequent problem I see: Image tags are self closing. Write this:

    <img src="" alt="" />

    NOT this:
    <img src="" alt="">...</img>

    And that alt=”” is required by the version of html you’re using.

    Go through your template and make sure all tags are actually closed (looks like a few aren’t).

    Also make sure all attributes are spaced. Here’s one other bad example:

    <a href="http://test.webmeba.com/?p=57"title="Google Attacks Yaho......

    should be

    <a href="http://test.webmeba.com/?p=57" title="Google Attacks Yaho........

    Thread Starter Webmeba

    (@webmeba)

    Thanks for the tip about spacing!

    I managed to fix around 30 errors 🙂 .

    However I still have a few weird XML problems like this one

    Error Line 318, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 60 and body.

    </body>
    ———————————-
    # Error Line 283, Column > 80: XML Parsing Error: attributes construct error .

    …padding:3px;text-align:center;” action=”http://www.feedburner.com/fb/a/emailv…


    # Error Line 283, Column > 80: XML Parsing Error: Couldn’t find end of Start Tag input line 283 .

    …padding:3px;text-align:center;” action=”http://www.feedburner.com/fb/a/emailv…

    Any ideas?

    I’m seeing different errors, so you must have continued working on it. The two biggies:

    If your “search webmeba” thing, you’ve got something like this (condensed here):

    <ul>
    <form>
    ...
    </form>
    </ul>

    What are those <ul> tags doing there?

    Later on, in the “subscribe to webmeba” section, you’ve got something like this:

    <div id="sidebar-email"><p><form ...>...</form></p>

    Get rid of that <p> before <form> (and its companion </p> after </form> and close that div.

    You may want to check out the w3c xhtml tutorial.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XML erorrs while validating – Please Help!!!!’ is closed to new replies.