You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Radu Coravu (JIRA)" <xe...@xml.apache.org> on 2017/07/07 09:35:02 UTC
[jira] [Created] (XERCESJ-1681) Report parse error when element
names begin with "xml"
Radu Coravu created XERCESJ-1681:
------------------------------------
Summary: Report parse error when element names begin with "xml"
Key: XERCESJ-1681
URL: https://issues.apache.org/jira/browse/XERCESJ-1681
Project: Xerces2-J
Issue Type: Bug
Components: SAX
Reporter: Radu Coravu
One of our users suggested us that an XML like this:
{code:xml}
<xml-root></xml-root>
{code}
is not valid because the specs:
https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-common-syn
says that the name of an XML element should not start with XML:
{code}
A Name is a token beginning with a letter or one of a few punctuation characters, and continuing with letters, digits, hyphens, underscores, colons, or full stops, together known as name characters.] Names beginning with the string "xml", or with any string which would match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or future versions of this specification.
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org