Everything2
Near Matches
Ignore Exact
Full Text
Everything2

XML schema

created by funnytoes

(thing) by funnytoes (5.8 y) (print)   ?   I like it! Sun Jun 11 2000 at 15:04:30

Like DTDs, XML schema are a way to define the elements of an XML document. Unlike DTDs, however, XML schema use XML syntax to construct the definition.

As of this writeup, schemas are at the W3C Working Draft stage and are not widely implemented. However, it is expected that they will replace DTDs in the future.

The W3C formal specification (work in progress) lives here: http://www.w3.org/TR/2001/WD-xmlschema-formal-20010320/.


(thing) by argv (9 mon) (print)   ?   I like it! Sat Mar 27 2004 at 16:03:45

A language for describing the structure, content, and (to a degree) semantics of XML documents. While XML has a built-in means of doing this (DTDs), XML Schema is far more powerful.

XML Schemas are themselves written in XML, rather than using a special syntax like DTDs. (In fact, there is a schema for XML Schema that is written in XML Schema.)

Highlights of XML Schema include:

  • Support for XML Namespaces.
  • Elements which exist only in the scope of their parent element. This means that one can have two or more different elements with the same name, and exactly which element is being referred to depends on what its parent element is.
  • More specific restrictions on the textual content of elements. For instance, an element might be required to contain a number and nothing else. Such restrictions can be specified in various ways, including regular expressions that the content must match.
  • Annotations and documentation. Such annotations can be attached to elements, attributes, and so forth. This can be used by authors to understand what the document being described is for, what its semantics are, what each element means, and so on. This can be used by XML editors to both construct a skeletal instance document (which the author then fills in), as well as display these descriptions, perhaps in a schema browser or a popup window in the editor proper.

One important feature of DTDs that XML Schema does not replace is entity declarations. Even if the XML parser is validating against an XML Schema, it will still use entity declarations provided in a DTD and/or internal subset (though it will obviously ignore element declarations there). This way, authors do not lose the very useful ability to write their own entities as a result of using XML Schema instead of a DTD.


printable version
chaos

HTML attributes DTD HTML tags Introduction
XML XQL Guns don't kill people; people kill people XSL
PHP parser code for the nodelist XML working draft replace RDF
Simple Object Access Protocol Trust me, I have a pineapple IE5 Adobe Photoshop
implementation XUL W3C Don Box
Adobe Document Structuring Conventions Gimp libxml2 Normalization
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
The best nodes of all time:
Nelson Riddle
Schwarzschild radius
Bard
Lobotomy
Marlene Dietrich
Japan
II-V-I progression
kissing in public
Walther PPK
Lines in the mind
Flight 19
woodchipper
Variant peanut butter sandwich
New Writeups
Ouzo
The Great Barbershop Race Wars(log)
Mannerisky
second language(essay)
aneurin
British Monomarks(idea)
FrankThomas
How and why do we (humans) have culture?(essay)
lee_cad
Isaac(person)
kalen
downvota(poetry)
Andrew Aguecheek
Wstfgl(thing)
ncc05
overheard at IHOP(event)
calgon
Bottomless(poetry)
lismaraxt
Ice Theory of The Origin of Life(idea)
allthetime
Apple Cinnamon Suicide(idea)
Lucy-S
shovelglove(idea)
Adaptive Child
Mexican secret sauce(recipe)
Adaptive Child
nacho libre(recipe)
TheLady
Iron Man(review)
E2 is a by-product of the existence of The Everything Development Company