















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An overview of xml schemas, their role as successors to dtds, and their features such as support for data types, extensibility, and use of xml syntax. It also covers the structure of xml schemas and the definition of element and attribute types, as well as data types and their extensions.
Typology: Slides
1 / 87
This page cannot be seen from the preview
Don't miss anything!
7
XML Schemas
8
XML Schema?
10
XML Schemas
XML Schemas use XML Syntax
Benefits of Schemas as XML docs
11
XML Schemas
XML Schemas are Extensible
13
XML Schemas
Even if documents are well-formed they can
still contain errors, and those errors can have
serious consequences.
Think of the following situation: you order 5
gross of laser printers, instead of 5 laser printers. With XML Schemas, most of these
errors can be caught by your validating
software.
14
XML Schemas
16
XML Schemas
<xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Another Example
19
XML Schemas
This XML document has a reference to a
Schema:
<note xmlns= “http://www.w3schools.com” xmlns:xsi="http://www.w3.org/2001/XMLSchema instance“ xsi:schemaLocation="http://www.w3schools.com note.xsd">
20
XML Schemas
The