I have just recently begun using XML Schema, and I am trying to get my head around the whole namespace issue. I am embarrassed to even ask this question, but here it goes:
a namespace is comparable to a java package, correct? in the sense that a package is a location for a collection of classes, and two different packages can have a class with the same name. is this understanding correct? if so, then how does the netbeans XML editor perform autocompletion by providing the correct namespace, since the namespace is nothing more than a URI to a webpage. What about this particular URI informs the editor that the Schema elements, such as complexType and simpleType an so on, exist in this namespace?
I have created a schema, and its instance, and if the schemalocation attribute is correctly set, then the editor performs autocompletion, but in this case, i provide a schema document, so why does the schema editor provide autocompletion from just a URI? Does it have to do with a template in the editor, that is matched to this URI?
any help about this topic would be appreciated...it would go along way toward my understanding of what a namespace really is, since I plan on making my graduation project in the semantic web, rdf and ontologies, and i need to understand XML and thus namespaces very well...
thank in advance
Sam