Hi there,
I've been reading lots of tutorials on XML and am having a really hard time understanding the basics of namespaces in a schema. From an example I found at W3C, could someone please tell me (in plain English) hopefully, what the differences between these three lines are ??
(1) <schema xmlns="(2) xmlnso="(3) targetNamespace="
I think: (1) is specifying that the basic tags in this document are tags that adhere to those established by the guidelines at Is that right? by doing a xmlns= does that make it the default namespace so that you don't have to put a prefix before the elements ??
I think that (2) means that we're setting a new set of language specific to and indicating by xmlnso that all of that language's elements must be prefixed by "po" according to the rules of this schema. (good so far???)
But, what on earth is (3) for ???? and how is it different from (2) ???
any advice you can offer to get me thinking clearly about this would be most appreciated. I guess I have a problem understanding what the 'target' is ??
I also get confused when I see several unique namespaces mentioned in a schema but only one targetnamespace... how/why is that??
I've been reading lots of tutorials on XML and am having a really hard time understanding the basics of namespaces in a schema. From an example I found at W3C, could someone please tell me (in plain English) hopefully, what the differences between these three lines are ??
(1) <schema xmlns="(2) xmlnso="(3) targetNamespace="
I think: (1) is specifying that the basic tags in this document are tags that adhere to those established by the guidelines at Is that right? by doing a xmlns= does that make it the default namespace so that you don't have to put a prefix before the elements ??
I think that (2) means that we're setting a new set of language specific to and indicating by xmlnso that all of that language's elements must be prefixed by "po" according to the rules of this schema. (good so far???)
But, what on earth is (3) for ???? and how is it different from (2) ???
any advice you can offer to get me thinking clearly about this would be most appreciated. I guess I have a problem understanding what the 'target' is ??
I also get confused when I see several unique namespaces mentioned in a schema but only one targetnamespace... how/why is that??