Mega Code Archive

 
Categories / XML Tutorial / Namespace
 

Defining the XML Schema Namespace as the Default

<?xml version="1.0"?> <schema xmlns="http://www.w3.org/2001/XMLSchema"   targetNamespace="http://www.rntsoft.com/namespaces/pub"   xmlns:pub="http://www.rntsoft.com/namespaces/pub"   elementFormDefault="qualified">   <include schemaLocation="book.xsd"/>   <element name="products">    <complexType>     <sequence>      <element name="publications">       <complexType>        <sequence>         <element ref="pub:book" maxOccurs="unbounded"/>        </sequence>       </complexType>      </element>     </sequence>    </complexType>   </element> </schema>