Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

XML Document Structure

XML documents are text documents, which are commonly denoted as XML documents by use of the .xml extension. There are no restrictions on the length of the XML document; however, at a certain point, a document that is too long may become difficult to navigate or use in conjunction with XML software.

Now let's take a look at some of the physical constructs of XML documents.

The XML Declaration

Every XML document should begin with the XML Declaration, which takes the following form:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 

The XML declaration always starts with the “<?xml” and always ends with “?>”. Additionally, there are three attributes that are also used in the XML Declaration:

  • version— The version attribute ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book