<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://ift.tt/tphNwY" targetNamespace="http://redbus.in/ travels /types" xmlns:rbt="http://redbus.in/ travels /types">
<xs:import namespace="http:http://ift.tt/1q63zxP" schemaLocation="Kesineni.xsd"/>
<xs:element name="redbus" type="rbt:redbustype"/>
<xs:complexType name="redbustype">
<xs:sequence>
<xs:element name="passengerinfo" type="rbt:passengerinfotype"/>
<xs:element name="reservationinfo" type="rbt:reservationinfotype"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="passengerinfotype">
<xs:sequence>
<xs:element name="identity" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="age" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="reservationinfotype">
<xs:sequence>
<xs:any></xs:any>
</xs:sequence>
</xs:complexType>
</xs:schema>
This is my first xsd in which reservationinfo is of any type means it will support reservation from any vendors ..but while i am importing kesineni xsd i am getting some problem it is asking which one will be root..i want redbus should be root
2nd xsd (Kesineni.xsd) :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://ift.tt/tphNwY" xmlns:kst="http:http://ift.tt/1q63zxP" targetNamespace="http:http://ift.tt/1q63zxP">
<xs:element name="keseneniticket" type="kst:kesenenitype"/>
<xs:complexType name="kesenenitype">
<xs:sequence>
<xs:element name="tktno" type="xs:int"/>
<xs:element name="serviceno" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
No comments:
Post a Comment