cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

Can someone please explain <xsd:include> tag with example??

Also specify the constraints regarding the usage of the same.

Thanx.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi anisha Sarode,

This design approach is the mirror image of the first approach:

<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.library.org"

xmlns="http://www.library.org"

elementFormDefault="qualified">

<b><xsd:include schemaLocation="Book.xsd"/></b>

<xsd:element name="Library">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="BookCatalogue">

<xsd:complexType>

<xsd:sequence>

<xsd:element ref="Book"

maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

with regards

Pradeep N