aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Help on XML Namespaces concept" Watch "Help on XML Namespaces concept" New topic
Author

Help on XML Namespaces concept

Sandy Chang
Greenhorn

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
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Three best resources:
XML Namespaces FAQ: http://www.rpbourret.com/xml/NamespacesFAQ.htm
Ronald Bourret. Namespace Myths Exploded: http://www.xml.com/pub/a/2000/03/08/namespaces/
ZVON's Namespace Tutorial: http://zvon.org/xxl/NamespaceTutorial/Output/index.html


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

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

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: http://aspose.com/file-tools
 
subject: Help on XML Namespaces concept