give me some declaration about namespace
hi ,
plz i want some declaration about namespace, i know why i use namespace (establishing unique identifiers for elements and attributes) so my question, URL means the location of my document or just something to make difference among other xml objects ? what this mean in URL "ns/movies" ?
Code:
<movies xmlns:movie="http://www.SiteName.com/ns/movies">
Re: give me some declaration about namespace
Quote:
Originally Posted by
honeyboy_20
hi ,
plz i want some declaration about namespace, i know why i use namespace (establishing unique identifiers for elements and attributes) so my question, URL means the location of my document or just something to make difference among other xml objects ? what this mean in URL "ns/movies" ?
Code:
<movies xmlns:movie="http://www.SiteName.com/ns/movies">
It is for uniqueness.
It is presumes that anyone publishing information will have a domain, so that is the first part. Specificlly for your sample, the owners of SiteName look like they decided to group all of the namespaces into an "ns" category (quite common) and then put the specific informaion.
Re: give me some declaration about namespace
Quote:
Originally Posted by
TheCPUWizard
It is for uniqueness.
It is presumes that anyone publishing information will have a domain, so that is the first part. Specificlly for your sample, the owners of SiteName look like they decided to group all of the namespaces into an "ns" category (quite common) and then put the specific informaion.
thanks, but "ns" is just label to say my namespaces which i determine have this URL? where is info ? does this info stored ?
Re: give me some declaration about namespace
Quote:
Originally Posted by
honeyboy_20
thanks, but "ns" is just label to say my namespaces which i determine have this URL? where is info ? does this info stored ?
I can not make sense of your questions.
Once again, (just like a programming namespace) and XML namespace is simply a means to prevent "collisions" between names. The only differences is that a programming namespace must (typically) have the format of a series of identifiers separated by a delimiter, XML namespaces take the format of a valid URI.
Providing you can GUARANTEE that no one else will use the same thing (and this is done my registering a domain that you control), nothing else matters...
There is Nothing To "Find"....
There is NO "info"...
There is NO "storage".....
Re: give me some declaration about namespace
May Allah Guide You.Thanks.
Re: give me some declaration about namespace
Quote:
Originally Posted by
honeyboy_20
May Allah Guide You.Thanks.
Glad to help. Just remember to mark theads as resolved (under the Thread Tools Menu) and to Rate people who spend time helping [using the little scales to the right of the replies]