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
Solved

targetNamespace usage

Posted on 2001-08-13
1
271 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:
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to DocumentFormat 8 110
How to obtain string using substring and indexOf function 11 67
AL3 Files 4 38
XSLT -  replace invalid xml characters 15 46
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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. 
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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