The question I want to ask is about XML namespaces. Pretty much everytime I see a namespace declaration, it’s pointing to some website somewhere.
But here’s what I don’t get. In my XML has a namespace which points to http://www.x.com/y, does this mean that some part of the application looks up this URL and gets some document which specifies what tags are within that namespace? If yes, what would happen if I tried to develop while not online? If no, is it just a unique name for the same of avoiding conflicts? If this is the case, could I just put anything there, so long as it’s unique?
Thanks.
The namespaces just look like URLs. They don’t need to point to any real document. It’s just a way to identify some namespace – no internet connection needed, nothing is downloaded.
By using a URL, every company can have it’s own namespaces without fear of colliding with namespaces used by some other company.