Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic question on XML Naming conventions

 
Anuradha Karunamuni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browsers are notoriously lax about tags. Try the standard Java library and report back to the class.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic