This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Basic question on XML Naming conventions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Basic question on XML Naming conventions" Watch "Basic question on XML Naming conventions" New topic

Basic question on XML Naming conventions

Anuradha Karunamuni
Ranch Hand

Joined: Dec 08, 2007
Posts: 64
It is said that element names cannot start with the string "xml" (or "XML", "Xml", etc). If an instance violates this rule, does it give an error when trying to parse the xml document?

I intentionally violated the rule and tried opening the xml document using the browser and it did not give me any error.
Browser : Internet Explorer 6.0

Someone please enlighten me.

"Simplicity is the ultimate sophistication..." ~Leonardo da Vinci~
SCJP 1.4
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12982
Browsers are notoriously lax about tags. Try the standard Java library and report back to the class.

I agree. Here's the link:
subject: Basic question on XML Naming conventions
It's not a secret anymore!