Solved

targetNamespace usage

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now