Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace and TargetNameSpace

 
mithun gooty
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between Namespace and TargetNamespace?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An XML namespace is just a method in which you can define that your that types belonging to some URI which is a kind of address. It's main goal is to avoid name collisions when you and someone else are defining the same names for the elements. By defining a namespace for which you're only responsible you will be sure that you don't use the same name.

The target namespace is the namespace where newly created elements and attributes will reside when you create them within an XML-schema.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic