Tutorial by Examples

XML is a syntax, which means a simple text editor is enough to get started. However, having an XML-specific editor that shows you when and where your document is not well-formed is almost indispensable for productivity. Such editors may also allow you to validate XML documents against an XML Schema...
XML is made of basic building blocks, which are: element text attributes comments processing instructions An element has angle brackets: <element/> <element>some content</element> An attribute appears in an opening element tag: <element attribute-name="...
An XML document is a text file that conforms to the XML specification's well-formedness rules. Such a conforming document is said to be well-formed (not to be confused with valid). XML is very strict with well-formedness in comparison to other languages such as HTML. A text file that is not well-for...
<?xml version="1.0"?> <?speech-generator voice="Siri"?> <root xmlns:vocabulary="http://www.example.com/vocabulary"> <!-- These are the standard greetings --> <vocabulary:greetings> <vocabulary:greeting xml:lang="en-US&q...
Element and attribute names live in namespaces that are URIs. Namespaces are bound to prefixes that are used in the actual element and attribute names, which are called QNames. This document binds a namespace to the prefix prefix and defines a default namespace, bound with the absence of prefix. &...

Page 1 of 1