cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

differences between http, urn, url

Former Member
0 Likes
445

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

View Entire Topic
henrique_pinto
Active Contributor
0 Likes

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.