Murach's Java SE 6
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 the StAX XML API that was introduced in Java 6 and shows you how to use it to read and write XML data 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
An introduction to three XML APIs 690
DOM 690

SAX

690

StAX

690
How to use StAX to work with XML 692
How to create an XMLStreamWriter object 692

How to write XML

694
How to create an XMLStreamReader object 696
How to read XML 798
A class that works with an XML file 702




Murach's Java SE 6

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.