Title: XML Parsing Error: attributes construct error when validating
Last modified: August 19, 2016

---

# XML Parsing Error: attributes construct error when validating

 *  Resolved [klagreca](https://wordpress.org/support/users/klagreca/)
 * (@klagreca)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/xml-parsing-error-attributes-construct-error-when-validating/)
 * Hi folks!
    Here’s a problem that I’ve been fighting a loosing battle with: Proper
   validation with W3C.
 * I think the problem lies with WordPress removing spaces in the attributes within
   tags. Here’s the page in question: [http://www.lagrecaarts.com/shop](http://www.lagrecaarts.com/shop).
   When looking at the page in code view, everything looks good. But the code output
   view in the W3.org page clearly shows the spacing missing between the href and
   title attributes.
 * I’ve switched themes to test, no change.
    I’ve turned off the “correct invalid
   nested XHTML..” option, no change.
 * And funny, but there doesn’t seem to be a problem with my homepage, which also
   has hyperlinks.
 * Any ideas, other than “disable the visual editor”?
    🙂
 * Thanks,
    Kristopher

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [klagreca](https://wordpress.org/support/users/klagreca/)
 * (@klagreca)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/xml-parsing-error-attributes-construct-error-when-validating/#post-748115)
 * Just to give things a “bump” here is a precise example of that’s happening:
 * In my code view, a link looks like this:
    `<a title="Website design by LaGreca
   Arts" href="http://www.lagrecaarts.com/technology-services/services/web-design"
   >Web Design</a>`
 * Looks good, right? Well, when I use a code view from Safari or in the W3C output
   view, the link looks like this:
    `<a href="http://www.lagrecaarts.com/technology-
   services/services/web-design"title="Website design by LaGreca Arts" >Web Design
   </a>`
 * Now that’s not right. Why/where is WordPress doing this?
 *  Thread Starter [klagreca](https://wordpress.org/support/users/klagreca/)
 * (@klagreca)
 * [18 years ago](https://wordpress.org/support/topic/xml-parsing-error-attributes-construct-error-when-validating/#post-748149)
 * Well, looks like it fixed itself. Can’t say the upgrade to 2.5.1 fixed anything,
   because it was still happening after the upgrade. So my apologizes if you have
   the same issue. I don’t know how it was corrected.
 * Kris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘XML Parsing Error: attributes construct error when validating’ is closed
to new replies.

## Tags

 * [markup validation](https://wordpress.org/support/topic-tag/markup-validation/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)
 * [xhtml](https://wordpress.org/support/topic-tag/xhtml/)
 * [XML parsing error](https://wordpress.org/support/topic-tag/xml-parsing-error/)
 * [XML-Error](https://wordpress.org/support/topic-tag/xml-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [klagreca](https://wordpress.org/support/users/klagreca/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/xml-parsing-error-attributes-construct-error-when-validating/#post-748149)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
