Murach's Beginning Java 2, JDK 5
How to work with XML

To start, this chapter presents the basics of XML and shows you how an XML document is set up. Then, it presents DOM (Document Object Model), a standard for working with XML documents, and shows you how to make use of the DOM API in your Java programs.

Chapter 20 How to work with XML
Introduction to XML 680
An XML document 680
XML tags, declarations, and comments 682
XML elements 682
XML attributes 684
An introduction to DTDs 686
How to view and edit an XML file 688
How to view an XML file 688
How to edit an XML file 688
Introduction to XML APIs 690
An introduction to XML APIs 690

The DOM tree

690
How to use DOM to work with XML 694
Interfaces for working with the DOM tree 694

How to create an empty DOM tree

696
How to build a DOM tree 698
How to write a DOM tree to a file 700
How to read a DOM tree from a file 702
How to read the nodes of a DOM tree 704
How to modify the nodes of a DOM tree 706
Two classes that work with XML files 708
A utility class that works with XML files 708

A class that works with an XML file

710




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.