[JDEV] xml tag case sensitivity

Daniel Veillard veillard at redhat.com
Wed Jan 2 12:40:25 CST 2002


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/



More information about the JDev mailing list