File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Product and Other Certifications and the fly likes Help on XML Namespaces concept Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Help on XML Namespaces concept" Watch "Help on XML Namespaces concept" New topic

Help on XML Namespaces concept

Sandy Chang

Joined: Jan 18, 2002
Posts: 2
What exactly are XML Namespaces? How do you declare them and how do you use them? I'm totally confused. Please can someone help me here (maybe point out some web sites to go to for references)? I tried reading the documentation on Namespaces by W3C but got confused even more. Thanks!
Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
Three best resources:
XML Namespaces FAQ:
Ronald Bourret. Namespace Myths Exploded:
ZVON's Namespace Tutorial:

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Sandy Chang

Joined: Jan 18, 2002
Posts: 2
Thanks a lot
Kennet Svanberg

Joined: Jan 23, 2002
Posts: 2
None technical view:
Namespaces are just like packages in Java, a way to qualify a tagname and its meaning.
If two partners need to agree on how to use a tag they can create their own namespace.
A namespace usually have a URI that is suppose to be unique. This URI can point to a spec on how to use and interpret that tag but it doesn't have to.
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
I am also confused about namespace.
Here is my understanding:
the advantage of XML over html is the flexibilty of tag, but it can't get too flexible. XML still have certain number of tag just like html, but the number of different tag is very big (perhaps the size of dictionary). All these effort will pay off when do internet searching. The reason it can't get too flexible is that otherwise there is no way to search it.
My confusion is:
URN can be file name, web address, ... etc. I think this still lacks of standardation. A file name could mean the same domain as a web address, but it is in my c: drive. Who else will know it?
I agree. Here's the link:
subject: Help on XML Namespaces concept
It's not a secret anymore!