|
-
January 8th, 2009, 10:23 AM
#2
Re: give me some declaration about namespace
 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.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|