This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Namespace and TargetNameSpace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Namespace and TargetNameSpace" Watch "Namespace and TargetNameSpace" New topic

Namespace and TargetNameSpace

mithun gooty
Ranch Hand

Joined: Mar 14, 2006
Posts: 33
What is the difference between Namespace and TargetNamespace?
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
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.

Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Have you checked out Aspose?
subject: Namespace and TargetNameSpace
It's not a secret anymore!