[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Namespace....


Re:  Namespace....
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@c...>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.