0% found this document useful (0 votes)
14 views2 pages

DIC Exp 6 Lab File

Uploaded by

guddi.aarti.ug22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

DIC Exp 6 Lab File

Uploaded by

guddi.aarti.ug22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

StudentsSchema.

xsd

<?xml version="1.0" encoding="UTF-8"?>


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="Students">
<xs:complexType>
<xs:sequence>
<xs:element name="Student" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element name="Semester" type="xs:integer" />
<xs:element name="RollNo" type="xs:integer" />
<xs:element name="Email" type="xs:string" />
<xs:element name="Phone" maxOccurs="unbounded" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

StudentsList.xml

<?xml version="1.0" encoding="UTF-8"?>


<Students xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="StudentSchema.xsd">
<Student>
<Name>John Doe</Name>
<Semester>5</Semester>
<RollNo>12345</RollNo>
<Email>[email protected]</Email>
<Phone>+1234567890</Phone>
<Phone>+0987654321</Phone>
</Student>
<Student>
<Name>Jane Smith</Name>
<Semester>3</Semester>
<RollNo>67890</RollNo>
<Email>[email protected]</Email>
<Phone>+1122334455</Phone>
</Student>
</Students>

You might also like