Do any of my followers speak XML?

Because I have a problem and I’m not sure if it’s me that’s misunderstood the XML standard or the form checker I’m using that’s not following the standard.

<?xml version="1.0" encoding="UTF-8"?>
<xs:element/>

Is that, or is that not, a well-formed XML document?

My validity checker says it is not, I says it is.

I lean against the following quote from the standard:

The Namespaces in XML Recommendation [XML Names] assigns a meaning to names containing colon characters. Therefore, authors should not use the colon in XML names except for namespace purposes, but XML processors must accept the colon as a name character.

Particularly the last sentence

but XML processors must accept the colon as a name character.

Now I’m not saying that using a colon in your element name is any kind of good idea if you haven’t designated a namespace, but surely it is well-formed?

EDIT: For comparison, the following IS a well-formed document:

<?xml version="1.0" encoding="UTF-8"?>
<xselement/>

EDITx2: GOd damN IT tumblr. When I edit this document, it eats part of the xml code. I think I’ve restored it correctly now.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s