This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Regarding  XML NameSpace convention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Regarding  XML NameSpace convention" Watch "Regarding  XML NameSpace convention" New topic
Author

Regarding XML NameSpace convention

Harish Tiruvile
Ranch Hand

Joined: Dec 01, 2005
Posts: 99
Hi all,

while declaring XML NameSpace we are using URI which looks like "http:\\www.w3.org\2001\XMLSchema"

My question is why should we use Http formate even though it is not hooking in to that address.
Why cant we use the formate like company_name/project_name/etc...(company name & project will be unique always...so i hope we can use it)

ofcourse,i know http formate is specified by w3 community,but still i hope there might be a strong reason behind using Http formate(insted of ordinary package name)over other naming convention...can any one of you explain the significance of using Http formate in XML nameSpace


Giving up is the easiest thing in the world to do..but holding it together when everything seems like falling apart is true strength!!
with regards, Harish.T
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Couple of reasons for using URL format for namespace

- URL is well known format
- Standard
- More importantly it's guaranteed to be unique.
- Language independent (Java isn't only language suppose to work on XML)
- Easy to associate with companies Web URL and avoid naming conflicts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding XML NameSpace convention
 
Similar Threads
XML NameSpace convention
EJB - JNDI name
Differences between targetNamespace and default namespace
XML Namespace and XML Schema
TargetNameSpace