Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

targetNamespace usage

Posted on 2001-08-13
1
Medium Priority
?
282 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
1 Comment
 
LVL 6

Accepted Solution

by:
Wayne Bradney earned 200 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

Industry Leaders: 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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

886 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