• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 59 páginas
Otro

XML (eXtensible Markup Language) — Schema Guide

Document preview thumbnail
Vista previa 4 fuera de 59 páginas

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.

Vista previa del contenido

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

Información del documento

Subido en
1 de marzo de 2026
Número de páginas
59
Escrito en
2008/2009
Tipo
Otro
Personaje
Desconocido
$3.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
37
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes