Why can't I start XML entity names with 'xml''?

Posted by flamey on Stack Overflow See other posts from Stack Overflow or by flamey
Published on 2010-05-12T08:56:29Z Indexed on 2010/05/15 23:40 UTC
Read the original article Hit count: 228

Filed under:
|
<XmlInfo />

I ran into problem using Perl's popular SOAP::Lite module, where it wouldn't accept XML entity names starting with "xml" (regardles letters' case). The author of the module replied to email saying that entity names starting with "xml" are not permitted in XML specification, but I couldn't find it in W3C's documents for 1.0 and 1.1 specs, I also couldn't find it in any of the articles or guidelines docs about XML entity naming. In fact some guideline documents used names starting with xml as an example, and lots of people are using it, as I see via Google Code Search.

So are there any restrictions (besides which characters to use as defined in W3C's documents) in Entity naming in XML? Is there a restriction saying you can't name entities starting with "xml"?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about w3c