Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Namespace

 
hari ann
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20958
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic