This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes XML Namespace 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 "XML Namespace" Watch "XML Namespace" New topic
Author

XML Namespace

hari ann
Greenhorn

Joined: Dec 09, 2007
Posts: 11
Hi

i am newbie to XML. i am learning XML namespace.

in xml namespace decleration, what is the URI. what is the value should be.

xmlns:prefix="some URI"

thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

It should be whatever the person who owns the namespace says it should be.

If you are the owner of the namespace, then you should use a string that nobody else will ever use. The traditional way to make sure of that is to use an HTTP URI that belongs to your organization. For example if Unicef's Canadian subsidiary needed a namespace URI, they would choose one starting with "http://unicef.ca/". It's probably best to use more than just your domain name, as you might in future need to have more than one XML namespace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Namespace