Namespaces in XML schema have a lot of significance. As we always (generally) see XMLSchema namespace associated to each schema we come across. This is the schema which defines the basic-building-block-components like simpleType, complexType, sequence, choice, element, attribute, attributeGroup, minOccurs, maxOccurs etc.
The second type of namespace need to be associated is targetNamespace. This namespace is used just to refer to the component in your document. Every component, if qualified, must be in some namespace. If you want to reuse a qualified element in your document, you need to provide a targetNamespace. And if you refer to a global element in you schema within your same schema, or any other schema where you have included this schema, you need to put like this
This statement tells the compiler to put the referred element here.

No comments:
Post a Comment