[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|