<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.java2java.com/namespaces/pub"
xmlns="http://www.java2java.com/namespaces/pub">
<xsd:element name="publications">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="book" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
XML Document Instance
<?xml version="1.0"?>
<publications>
<book>
<title>Mastering XHTML</title>
<author>B</author>
<description>XML.
</description>
</book>
<book>
<title>Java</title>
<author>A</author>
<description>Java</description>
</book>
</publications>
|