aspose file tools*
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: 18141
    
    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
 
Similar Threads
Deploying the webservice
how to pick the node/attribute for a particular namespace
NameSpace URI?
xpath does not match when namespace prefix changes
Problem with Namespace Prefix in AXIS