Slashdot Mirror


XML in a Nutshell

The indefatigable chromatic wrote this review of what sounds like another solid offering from the hard workers at O'Reilly & Associates. If you're in the market for dead-tree references to XML, it probably belongs on your list of candidates. XML in a Nutshell author Elliotte Rusty Harold & W. Scott Means pages 480 publisher O'Reilly & Associates rating 8.5 reviewer chromatic ISBN 0-596-00058-8 summary A solid and useful reference for XML developers.

The Scoop

While one of the original goals of XML was to create a specification simple enough that a computer science student could produce a working parser in a week, a few new developments have complicated things slightly. The sea of W3C-recommended acronyms includes namespaces, XPath, XSL, XPointers, schemas, and dozens of specific XML applications. Adopting the simple rules of well-formed data helps, but the quickly-growing stable of related technologies is enough to make the sturdiest information architect weep. The specifications aren't as easy to read as, say, the latest Terry Pratchett novel, either.

XML in a Nutshell covers just the most important concepts. Cleanly written, it walks through the XML aspects likely to be used in most projects. As it assumes existing familiarity with the subjects, it does not spend much time in tutorial mode. Instead, these are the guts of the subjects, arranged nicely in dissection jars.

The first section covers XML basics. This includes the ubiquitous grove of angle brackets, the semantic intent and implication, a good chapter on DTDs, as well as internationalization concerns. The short discussion of namespaces is the clearest explanation this author has yet encountered.

Part two delves further into the reasons for using XML, exploring documents that use the structure to explain semantic relationships. DocBook and XHTML appear, as extended examples. Further, it explores the assistive technologies of XSL, XPath, XLinks, and XPointers. Again, the discussions of XSL and XPath compare very favorably to longer works, intended as tutorials. A brief examination of CSS and XSL Formatting Objects rounds out the section.

Part three explores the use of XML as a data transport. In this section, programming languages come into play. There's a strong hint of Java in the air, though most of the discussion follows a language-neutral path. Both the DOM and SAX parsing models have a dedicated chapter. They're short, but the essential pieces are described simply and effectively.

The final section makes or breaks the book. Luckily, XML in a Nutshell won't have much chance to gather dust. The two-hundred page reference section includes the most useful information. There's an annotated copy of the XML 1.0 Reference, arranged logically. The XSL reference, in particular, is quite good. DOM and SAX programmers will also enjoy their respective chapters. Finally, it's nice to have a large set of printed character tables handy.

What's to Consider

The parsing examples don't go much beyond DOM or SAX, and there's more than a strong Java flavor. (Of course, the models are very similar in most modern languages.) As well, some of the class interfaces in the SAX reference are hard to read. This is probably due to the complexity of the information instead of any editorial decision. There's also little discussion of actual XML applications. Instead, the book covers the principles behind perhaps 90% of XML usage. Again, this is not a complaint, just a clarification of the intended audience.

The Summary

The value of XML in a Nutshell should be readily apparent to XML developers. The material is well-organized and concise. It's a quintessential Nutshell book, upholding a tradition of utility and quality. Readers who've already been exposed to the presented material will likely keep this book close at hand.

Table of Contents
  1. XML Concepts
    1. Introducing XML
    2. XML Fundamentals
    3. Document Type Definitions
    4. Namespaces
    5. Internationalization
  2. Narrative-Centric Documents
    1. XML as a Document Format
    2. XML on the Web
    3. XSL Transformations
    4. XPath
    5. XLinks
    6. XPointers
    7. Cascading Stylesheets (CSS)
    8. XSL Formatting Objects (XSL-FO)
  3. Data-Centric Documents
    1. XML as a Data Format
    2. Programming Models
    3. Document Object Model (DOM)
    4. SAX
  4. Reference
    1. XML 1.0 Reference
    2. XPath Reference
    3. XSLT Reference
    4. DOM Reference
    5. SAX Reference
    6. Character Sets

You can purchase this book at Fatbrain.

12 of 122 comments (clear)

  1. Katy! by Anonymous Coward · · Score: -1, Offtopic

    I love you! Marry me! You can have your own wing!

  2. Oof by Anonymous Coward · · Score: -1, Offtopic

    Fird poast, lusers! Hal hal!!!

  3. FROUTH PSOT by Anonymous Coward · · Score: -1, Offtopic

    FROUTH PSOT

  4. bin by Anonymous Coward · · Score: -1, Offtopic

    hmm, wtc

  5. Attack on our way of life by Anonymous Coward · · Score: -1, Offtopic

    Today goatse.cx is at half mast.

    These blackhearted fukkers, whoever they are, have directly impacted upon you, mr troll.

    I say we find these bastards and troll them back to the stone age!

    (moderators, before you humorless grey drones mod this down because of the goatse link, please take a moment to click the link and verify what I am talking about -- that link does not throw reciever.jpg (or anything else similarly offensive) in your face like it has traditionally done.)

  6. Sad news - Stepehn King dead at 54 by Anonymous Coward · · Score: -1, Offtopic


    I just heard some sad news on talk radio - Horror/Sci Fi writer Stephen King was found dead in his Maine home this morning. There weren't any more details. I'm sure everyone in the Slashdot community will miss him - even if you didn't enjoy his work, there's no denying his contributions to popular culture. Truly an American icon.

    1. Re:Sad news - Stepehn King dead at 54 by Anonymous Coward · · Score: -1, Offtopic

      That's funny, reports I heard was that he was found in the rubble of the WTC.

    2. Re:Sad news - Stepehn King dead at 54 by Anonymous Coward · · Score: -1, Offtopic

      Stephen King is 53, moron.

    3. Re:Sad news - Stepehn King dead at 54 by ChiefCrazyTalk · · Score: -1, Offtopic

      yes, but according to Slashdot, hes been found dead at least 54 times in the past year.

    4. Re:Sad news - Stepehn King dead at 54 by Anonymous Coward · · Score: -1, Offtopic

      Ha, that's ironic. And... your post pointing out how the moderation system failed here gets modded down!

  7. Re:WHY ARE THE MINUTEMEN NOT FLYING? by Anonymous Coward · · Score: -1, Offtopic

    Uhhh Minutemen are not nuclear armed, dillhole.

  8. Re:WHY ARE THE MINUTEMEN NOT FLYING? by Anonymous Coward · · Score: -1, Offtopic

    Oh, you wanna play repeat? Well...

    WRONG FUCKING THREAD. TAKE YOUR HATE ELSEWHERE.