Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Schema element is the root element within an XML Schema

<schema targetNamespace="URI"          attributeFormDefault="qualified or unqualified"          elementFormDefault="qualified or unqualified"          version="version number">  You could use any of the following for the XML schema namespace :  <schema xmlns="http://www.w3.org/2001/XMLSchema">              or  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">        or  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">  Within the <schema> element you can specify how elements should be qualified: elementFormDefault and attributeFormDefault  The elementFormDefault and attributeFormDefault attributes enable you to control the default qualification form for elements and attributes. The default value is unqualified.