File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Basic question on XML Naming conventions" Watch "Basic question on XML Naming conventions" New topic
Author

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
Rancher

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

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic question on XML Naming conventions