Namespace Qualification : elementFormDefault « XML Schema « XML Tutorial






When working with namespaces, the schema author must decide whether the namespace of each element and attribute should be hidden or exposed in the document instance. 


elementFormDefault="qualified | unqualified"
attributeFormDefault="qualified | unqualified"

By setting the elementFormDefault attribute, you can require the document instance to expose or hide namespace qualifications.

If you use elementFormDefault="qualified", the namespace of each element would have to be exposed in document instances.








3.90.elementFormDefault
3.90.1.Namespace Qualification
3.90.2.Allowing Any Elements or Attributes from a Particular Namespace