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

Confusion with namespace

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have a diffculty in understanding what is the purpose of targetNamespace and what value should be used for this?

"xmlns" --> default namespace (what is this means and what value should we use)

"xmlns:xs" --> what is this means and what value should we use.

I am started learning Web Services from RMH book. In RMH book, they have used the following:

xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.Monson-Haefel.com/jwsbook"
targetNamespace="http://www.Monson-Haefel.com/jwsbook"

Also, I have seen w3schools site tutorial, they have mentioned:

xmlns="http://www.w3schools.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"

Why this different? In xmlns and xmlns:xs, the values used are differnet.(used interchangably)

I know we can have any value for uri, since it's not look into this location. but why this three things and what value should we used for it? Please throw some light on it..
[ March 06, 2007: Message edited by: Micheal John ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic