[JDEV] xml tag case sensitivity

Tim Ferguson tim.ferguson at cw.com
Thu Jan 3 10:16:17 CST 2002


Thanks everyone, I appreciate the info.

Tim Ferguson


-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
Daniel Veillard
Sent: Wednesday, January 02, 2002 11:40 AM
To: jdev at jabber.org
Subject: Re: [JDEV] xml tag case sensitivity

On Wed, Jan 02, 2002 at 09:20:09AM -0700, Tim Ferguson wrote:
> Is my understanding correct in that tags should be case-sensitive, so that
> <tag/> is different from <TAG/>?  Should I also assume that namespaces are

  Yes, per the XML spec:
     http://www.w3.org/TR/REC-xml#GIMatch
  Char and Names productions are case sensitive. And the start tag and
end tag must match exactly.

> case-sensitive so that jabber:iq:auth is separate from JABBER:IQ:AUTH?  I

  Yes the string used as the URI in namespaces should be used in a case
insensitive fashion. Not even URI normalization rules should be applied.

> have seen a couple of clients that appear to work case-insensitive, thus
my
> questions.

  It seems there is an number of not-even-close-to-XML implementations
around
and I suggest to stay far away from them (especially for server code !) to
avoid serious problems.

Daniel

--
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list