on ‎2007 Jan 30 8:25 AM
Hi,
When it comes to namespace it can start with either of http, urn url. without sending any links ( I have gone thorugh previous threads) could you please tell me in real time scenario when we will go for http and when we will go for urn & url ??
Any help in this regard is highly appreciated
Regards
Kumar
Request clarification before answering.
The namespace could be any string that uniquely defines the scope of those determined fields of the XML file. Usually, you use a URI to define that unique string, and since URLs are the most common URIs, people tend to use plain http URLs as the namespace (it doesn't need to be a valid url). But using "urn:test" for example isn't wrong.
From the specification:
URI
URI = Uniform Resource Identifier
There are two types of URIs: URLs and URNs
URL
URL = Uniform Resource Locator
<protocol>:// <host> [:<port>] [<path> [? <query>]]URN
URN = Uniform Resource Name.
URNs define XML schemas.
urn:<namespace>:<string>Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.