Example Source Code from Chapter 11, The Document Object Model Core, of Processing XML with Java
Example 11-1 The Element interface
Example 11-2 Extracting examples from DocBook
Example 11-3 A document that uses attributes
Example 11-4 A DOM program that adds attributes
Example 11-5 The NamedNodeMap interface
Example 11-6 An XLink spider that uses DOM
Example 11-7 The CharacterData interface
Example 11-8 ROT13 encoder for XML documents
Example 11-9 The Text interface
Example 11-10 Printing the text nodes in an XML document
Example 11-11 The CDATASection interface
Example 11-12 Merging CDATA sections with text nodes
Example 11-13 The EntityReference interface
Example 11-14 Inserting entity references into a document
Example 11-15 The Attr interface
Example 11-16 Specifying all attributes
Example 11-17 The ProcessingInstruction interface
Example 11-18 Reading PseudoAttributes from a ProcessingInstruction
Example 11-19 The Comment interface
Example 11-20 Printing comments
Example 11-21 The DocumentType interface
Example 11-22 The Entity interface
Example 11-23 Listing parsed entities used in the document
Example 11-24 The Notation interface
Example 11-25 Listing the Notations declared in a DTD
Examples from Other Chapters
|
Processing XML with Java
|
Cafe con Leche
Copyright 2002 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 23, 2002