XML In A Nutshell

XML In A Nutshell

by Elliotte Rusty Harold, W. Scott Means

Paperback(Third Edition)

$40.49 $44.99 Save 10% Current price is $40.49, Original price is $44.99. You Save 10%.
View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Wednesday, March 27

Product Details

ISBN-13: 9780596007645
Publisher: O'Reilly Media, Incorporated
Publication date: 09/15/2004
Series: In a Nutshell (O'Reilly) Series
Edition description: Third Edition
Pages: 714
Sales rank: 333,737
Product dimensions: 6.00(w) x 9.00(h) x 1.60(d)

About the Author

Elliotte Rusty Harold is originally from New Orleans to which he returns periodically in search of a decent bowl of gumbo. However, he currently resides in the Prospect Heights neighborhood of Brooklyn with his wife Beth, dog Shayna, and cat Marjorie (named after his mother-in-law). He's a frequent speaker at industry conferences including Software Development, Dr. Dobb's Architecure & Design World, SD Best Practices, Extreme Markup Languages, and too many user groups to count. His open source projects include the XOM Library for processing XML with Java and the Amateur media player.

W. Scott Means has been a professional software developer since 1988, when he joined Microsoft Corporation at the age of 17. He was one of the original developers of OS/2 1.1 and Windows NT, and did some of the early work on the Microsoft Network for the Microsoft Advanced Technology and Business Development group. Since then he has written software for everything from multiplayer casino games to railroad geometry measurement equipment. For Scott's latest projects and musings on software development, visit his blog at smeans.com.

Table of Contents

Preface;
What This Book Covers;
What's New in the Third Edition;
Organization of the Book;
Conventions Used in This Book;
Request for Comments;
Acknowledgments;
Part I: XML Concepts;
Chapter 1: Introducing XML;
1.1 The Benefits of XML;
1.2 What XML Is Not;
1.3 Portable Data;
1.4 How XML Works;
1.5 The Evolution of XML;
Chapter 2: XML Fundamentals;
2.1 XML Documents and XML Files;
2.2 Elements, Tags, and Character Data;
2.3 Attributes;
2.4 XML Names;
2.5 References;
2.6 CDATA Sections;
2.7 Comments;
2.8 Processing Instructions;
2.9 The XML Declaration;
2.10 Checking Documents for Well-Formedness;
Chapter 3: Document Type Definitions (DTDs);
3.1 Validation;
3.2 Element Declarations;
3.3 Attribute Declarations;
3.4 General Entity Declarations;
3.5 External Parsed General Entities;
3.6 External Unparsed Entities and Notations;
3.7 Parameter Entities;
3.8 Conditional Inclusion;
3.9 Two DTD Examples;
3.10 Locating Standard DTDs;
Chapter 4: Namespaces;
4.1 The Need for Namespaces;
4.2 Namespace Syntax;
4.3 How Parsers Handle Namespaces;
4.4 Namespaces and DTDs;
Chapter 5: Internationalization;
5.1 Character-Set Metadata;
5.2 The Encoding Declaration;
5.3 Text Declarations;
5.4 XML-Defined Character Sets;
5.5 Unicode;
5.6 ISO Character Sets;
5.7 Platform-Dependent Character Sets;
5.8 Converting Between Character Sets;
5.9 The Default Character Set for XML Documents;
5.10 Character References;
5.11 xml:lang;
Part II: Narrative-Like Documents;
Chapter 6: XML as a Document Format;
6.1 SGML's Legacy;
6.2 Narrative Document Structures;
6.3 TEI;
6.4 DocBook;
6.5 OpenOffice;
6.6 WordprocessingML;
6.7 Document Permanence;
6.8 Transformation and Presentation;
Chapter 7: XML on the Web;
7.1 XHTML;
7.2 Direct Display of XML in Browsers;
7.3 Authoring Compound Documents with Modular XHTML;
7.4 Prospects for Improved Web Search Methods;
Chapter 8: XSL Transformations (XSLT);
8.1 An Example Input Document;
8.2 xsl:stylesheet and xsl:transform;
8.3 Stylesheet Processors;
8.4 Templates and Template Rules;
8.5 Calculating the Value of an Element with xsl:value-of;
8.6 Applying Templates with xsl:apply-templates;
8.7 The Built-in Template Rules;
8.8 Modes;
8.9 Attribute Value Templates;
8.10 XSLT and Namespaces;
8.11 Other XSLT Elements;
Chapter 9: XPath;
9.1 The Tree Structure of an XML Document;
9.2 Location Paths;
9.3 Compound Location Paths;
9.4 Predicates;
9.5 Unabbreviated Location Paths;
9.6 General XPath Expressions;
9.7 XPath Functions;
Chapter 10: XLinks;
10.1 Simple Links;
10.2 Link Behavior;
10.3 Link Semantics;
10.4 Extended Links;
10.5 Linkbases;
10.6 DTDs for XLinks;
10.7 Base URIs;
Chapter 11: XPointers;
11.1 XPointers on URLs;
11.2 XPointers in Links;
11.3 Shorthand Pointers;
11.4 Child Sequences;
11.5 Namespaces;
11.6 Points;
11.7 Ranges;
Chapter 12: XInclude;
12.1 The include Element;
12.2 Including Text Files;
12.3 Content Negotiation;
12.4 Fallbacks;
12.5 XPointers;
Chapter 13: Cascading Style Sheets (CSS);
13.1 The Levels of CSS;
13.2 CSS Syntax;
13.3 Associating Stylesheets with XML Documents;
13.4 Selectors;
13.5 The Display Property;
13.6 Pixels, Points, Picas, and Other Units of Length;
13.7 Font Properties;
13.8 Text Properties;
13.9 Colors;
Chapter 14: XSL Formatting Objects (XSL-FO);
14.1 XSL Formatting Objects;
14.2 The Structure of an XSL-FO Document;
14.3 Laying Out the Master Pages;
14.4 XSL-FO Properties;
14.5 Choosing Between CSS and XSL-FO;
Chapter 15: Resource Directory Description Language (RDDL);
15.1 What's at the End of a Namespace URL?;
15.2 RDDL Syntax;
15.3 Natures;
15.4 Purposes;
Part III: Record-Like Documents;
Chapter 16: XML as a Data Format;
16.1 Why Use XML for Data?;
16.2 Developing Record-Like XML Formats;
16.3 Sharing Your XML Format;
Chapter 17: XML Schemas;
17.1 Overview;
17.2 Schema Basics;
17.3 Working with Namespaces;
17.4 Complex Types;
17.5 Empty Elements;
17.6 Simple Content;
17.7 Mixed Content;
17.8 Allowing Any Content;
17.9 Controlling Type Derivation;
Chapter 18: Programming Models;
18.1 Common XML Processing Models;
18.2 Common XML Processing Issues;
18.3 Generating XML Documents;
Chapter 19: Document Object Model (DOM);
19.1 DOM Foundations;
19.2 Structure of the DOM Core;
19.3 Node and Other Generic Interfaces;
19.4 Specific Node-Type Interfaces;
19.5 The DOMImplementation Interface;
19.6 DOM Level 3 Interfaces;
19.7 Parsing a Document with DOM;
19.8 A Simple DOM Application;
Chapter 20: Simple API for XML (SAX);
20.1 The ContentHandler Interface;
20.2 Features and Properties;
20.3 Filters;
Part IV: Reference;
Chapter 21: XML Reference;
21.1 How to Use This Reference;
21.2 Annotated Sample Documents;
21.3 XML Syntax;
21.4 Constraints;
21.5 XML 1.0 Document Grammar;
21.6 XML 1.1 Document Grammar;
Chapter 22: Schemas Reference;
22.1 The Schema Namespaces;
22.2 Schema Elements;
22.3 Built-in Types;
22.4 Instance Document Attributes;
Chapter 23: XPath Reference;
23.1 The XPath Data Model;
23.2 Data Types;
23.3 Location Paths;
23.4 Predicates;
23.5 XPath Functions;
Chapter 24: XSLT Reference;
24.1 The XSLT Namespace;
24.2 XSLT Elements;
24.3 XSLT Functions;
24.4 TrAX;
Chapter 25: DOM Reference;
25.1 Object Hierarchy;
25.2 Object Reference;
Chapter 26: SAX Reference;
26.1 The org.xml.sax Package;
26.2 The org.xml.sax.helpers Package;
26.3 SAX Features and Properties;
26.4 The org.xml.sax.ext Package;
Chapter 27: Character Sets;
27.1 Character Tables;
27.2 HTML4 Entity Sets;
27.3 Other Unicode Blocks;
Colophon;

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

XML in a Nutshell 4.3 out of 5 based on 0 ratings. 8 reviews.
RicDay on LibraryThing 10 months ago
An excellent reference to have at hand when working on XML schema. Probably as definitive as it gets.
Anonymous More than 1 year ago
Guest More than 1 year ago
The organization of the book is great. Very useful and well written. It provides quick-reference syntax rules and usage examples for the core XML technologies, including XML, DTDs, Xpath, XSLT, SAX, and DOM. Develop an understanding of well-formed XML, DTDs, namespaces, Unicode, and W3C XML Schema. This new edition is the comprehensive XML reference. Serious users of XML will find coverage on just about everything they need, from fundamental syntax rules, to details of DTD and XML Schema creation, to XSLT transformations, to APIs used for processing XML documents. The initial chapter on SAX along with the reference chapter would give me a solid foundational base from which to work. If you need explanation of how a technology works, or just need to quickly find the precise syntax for a particular piece, XML in a Nutshell puts the information at your fingertips. I would recommend this book to someone interested in its topic. This book has earned a valued place on my reference shelf.
Guest More than 1 year ago
In my opinion, XML In A Nutshell is the definitive reference for XML syntax and use. I¿ve had this book on my desk since the first edition. Now at edition 3, this book just keeps getting better and better. It covers virtually every XML standard, provides lots of examples, and has a character set reference that I couldn¿t live without. Highly recommended for all XML questions. Like many of the ¿Nutshell¿ books, this book starts off with a lot of informational chapters, designed to give a high level view of many XML-related technologies. These chapters, while a bit vague in parts, are still very good and will answer most general questions. However, when you have a deeper question, the reference chapters in the second half of the book really shine. The reference material is well organized, making information easy to find and digest. Personally, my favorite chapters are the XPath Reference and the XSLT Reference sections. Anyone who works with XML on a daily basis should have this book at their desk. This is the one book to have on XML.
Guest More than 1 year ago
How much XML do you need to know? Me, I read and write XML daily in my programs. But without having to support legacy data, I've found that I can use a very minimal subject to good effect. No mixed content, no attributes in tags, etc. So I can use SAX very easily. And I only need a small subset of this book. But chances are that you may not be in such an easy situation. You might have to transform XML data using XSLT. While conceptually simple, the details are complex. So the book's section on XSLT can be vital. Another usage context is when you have to do some kind of search within XML data. The purview of XPath, XPointer and XLink. More good stuff to lookup here for explanations. Harold writes fluently about XML. He has several other well received books on XML. So technically, you can rely on this book to get the details right. But few of you should need to know all of this book. XML has grown vastly, to serve increasingly different and specialised needs. The book tries to address the totality of these needs. So don't be intimidated if you see chapters that you are totally unaware of. I'm in the same boat as you, and so are many others.
Guest More than 1 year ago
Let me put it this way : I have the first edition, yet I just shelled out $36 for the second edition. 'Nuff said.
Guest More than 1 year ago
My bunny head is a cow. I ate cerial sixteen times in one evening once. Toots toots, bo bo goots. Im going to throw at your face some darts.
Guest More than 1 year ago
The Nutshell series of books from O¿Reilly have a special section of my desk established for them; no other set of books condenses so much information for reference. This book is no exception to this fact.

Before I continue, please avoid buying an O¿Reilly Nutshell book expecting it to teach you about the topic it is intended for. As far as I¿ve worked with them, these books are not intended as a do-all be-all that other references want to be. The information introducing you to XML is sparse, so if you don¿t know anything about XML, get another book. I recommend XML: A Primer by Simon St. Laurent; it is an excellent learning tool, and though it doesn¿t go into all the detail the XML standard can go into (no book I¿ve found can do such), it provides the user with understanding of XML.

XML in a Nutshell is what I use when I¿ve forgotten how to use a certain aspect of XML detail. As a reference and a second book on XML, nothing comes close.