• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 59 pages
Other

XML (eXtensible Markup Language) — Schema Guide

Document preview thumbnail
Preview 4 out of 59 pages

Introduction to XML and XML Schema This overview summarizes a practical guide to XML (eXtensible Markup Language) and XML Schema, showing how schema languages define, validate, and constrain XML data. The material explains why XML Schema is widely used to describe document structure and data types, and it balances conceptual explanation with real-world examples so readers can apply the ideas to APIs, data interchange formats, and document-centric systems. According to the author, the guide emphasizes schema-driven validation, modular design, and patterns for maintainable XML vocabularies. What you will learn: How XML Schema functions as a formal Data Definition Language (DDL) for XML and how that differs from older approaches such as DTDs. How to model data with simple and complex types, including reuse strategies and anonymous versus named type definitions. How namespaces help avoid name collisions and support multiple vocabularies in a single document. How to enforce data integrity with keys, keyrefs, uniqueness constraints, and datatype restrictions. How to represent mixed content, apply pattern and enumeration restrictions, and compose union types and lists. Best practices for schema design, validation workflows, and practical examples you can adapt to common use cases.

Content preview

XML : eXtensible Markup
Language

Prof. dr. J. Paredaens
mmv. M. Mampaey
TU/e




1. Introduction to XML
2. XPath
3. XQuery
4. Typing in XQuery
5. Document Type Definitions
6. XML Schema
7. Light XQuery
8. XSLT




1

,I. XML

[1] www.w3.org/TR/xmlschema-0
[2] www.w3.org/TR/xmlschema-1
[3] www.w3.org/TR/xpath
[4] P.M. Lewis, A. Bernstein, M. Kifer, Databases and
Transaction Processing, Addison Wesley, Chapter
17, 2002
[5] D. Chamberlin, XQuery, a query language for XML,
Web, June 2003
[6] www.w3.org/TR/xquery
[7] www.w3.org/XML/Query




[8] www.w3.org/TR/xslt20
[9] Draper et al, XQuery 1.0 and XPath 2.0 Formal
Semantics, www.w3.org/TR/xquery-semantics/,
2003
[10] M. Brundage, XQuery, Add. Wesley, 2004
[11] J. McGovern, P. Bothner, K. Cagle, J. Linn, V.
Nagarajan, XQuery, Sams Publ., 2004
[12] H. Katz, XQuery from the Experts, Add. Wesley, 2004




!




2

, # $ % &!'

• Web data for human consumption
– HTML (Cfr. next slide)
– Self describing: attribute names are included
• but not explicitly separated from data values
• Web data for machine consumption
– Characteristics of Semistructured Data:
• object-like
• schemaless
• self-describing
– XML
• (optional) structure descr.: DTD, XML Schema


"




HTML-document
<html>
<head><Title>Student List</Title></head>
<body>
<h1>ListName: Students</h1>
<dl>
<dt>Name: Jan Vijs
<dd>Id: 11
<dd>Address:
<ul>
<li>Number: 123
<li>Street: Turnstreet
</ul>
<dt>Name: Jan De Moor
<dd>Id: 66
<dd>Address:
<ul>
<li>Number: 4
<li>Street: Hole Rd
</ul>
</dl>
</body>
</html>




(




3

, • Why is XML important?
– simple open non-proprietary widely accepted data
exchange format
• XML is like HTML but
– no fixed set of tags
• X = “extensible”
– no fixed semantics (c.q. representation) of tags
• representation determined by separate ‘stylesheet’
• semantics determined by application
– no fixed structure
• user-defined schemas


)




XML-document – Running example 1
<?xml version ="1.0"?>
<PersonList Type="Student" Date="2004-12-12">
<Title Value="Student List"/>
<Contents>
<Person>
<Name>Jan Vijs</Name>
<Id>11</Id>
<Address>
<Number>123</Number>
<Street>Turnstreet</Street>
</Address>
</Person>
<Person>
<Id>66</Id>
<Address>
<Number>4</Number>
<Street>Hole Rd</Street>
</Address>
</Person>
</Contents>
</PersonList>




4

Document information

Uploaded on
March 1, 2026
Number of pages
59
Written in
2008/2009
Type
Other
Person
Unknown
$3.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
37
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions