Solved

targetNamespace usage

Posted on 2001-08-13
1
274 Views
Last Modified: 2006-11-17
Hi !
Can sombody clerify me please where and why targetNamespace is used in Schamas ?

Thanks
0
Comment
Question by:ab11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
wbradney earned 50 total points
ID: 6381129
ab11,

Namespaces allow the use of identical names in different contexts or vocabularies. For instance, both a building and a person may have HEIGHT, and you'd like to use "HEIGHT" as an element name to represent both concepts. However, if you wanted to put both a person and a building into the same XML document, you'd have to qualify which HEIGHT you were referring to in each case. That's what targetNamespace is for -- when you use a schema to validate a document, you can state which namespace the declarations in the schema are from. eg. PERSON and BUILDING would be defined in different target namespaces.

Regards,
WMB
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question