OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Namespace....

[ Lists Home | Date Index | Thread Index ]

AmirHossein GholamiPour wrote:
> Hello to every body
> Last night I was studying some features of XML but I didn't understand
> NameSpace completely,and what it is used for and the specification of URI
> which I don't know the difference with URL.

For your purpopses you can ignore any differences. Just think
of the URI used in the namespace definition as "A galactic
wide unique string".
The idea is that the namespace prefixes in the xml file can be
kept short, like
   <o:some-element/>
Because there are not many short strings, the prefix is mapped
onto the real namespace "name", an URI. An URL is a specific
URI, so you can use an URL if you like. If you have already
a domain allocated with the authorities, you cen use it, like
   <o:element xmlns:o="http://domain.org/my/xml"/>
Note that it is not necessary to point to a real life document,
you don't even have to have a server running. The idea is that
if everybody uses a domain name which he/she owns, there can't
be any unintentional name clashes.

HTH
J.Pietschmann


  • References:
    • Namespace....
      • From: "AmirHossein GholamiPour" <gholamipour@ce.sharif.edu>



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS