XML Anatomy
XML documents are plain - text files that must be well - formed and may be valid . To be well - formed,
an XML document must respect some syntax rules you will find later in this section. A document is
also considered valid if it passes a validation test against a validation document, usually written in
the Document Type Definition (DTD) format or XML Schema format.
An XML document is composed by a hierarchy tree of nodes; each node has its own syntax that
must be strictly respected for the document being accepted by a processor. A processor can be any
kind of software that makes use of the data stored in the XML document. Unlike the HTML processors
that are capable of ingesting a lot of syntax errors without breaking the page rendering, the
XML processor usually refuses to operate on the document if this presents any syntax
inconsistencies.
??‘
??‘
??‘
??‘
Part II: Server Side, JavaScript, and Flash; Oh My!
204
The following XML document is a sample XHTML page. It is good to analyze this document because it
presents every type of node allowed and highlights the most common traps for users that are new to
XML processing.
Pages:
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400