Sams Teach Yourself XML in 21 Days

Sams Teach Yourself XML in 21 Days

By Steven Holzner

Day 16. Using Java and .NET: DOM

Today, you're going to use Java to work with XML. Yesterday you saw how to work with XML and JavaScript, and today you're going to take the next step and create standalone programs using Java. Today you'll use the built-in Java support for the W3C DOM methods described yesterday. Here's an overview of today's topics:

Note that we must use Java version 1.4 or later if you want to take advantage of Java's integrated XML support for the W3C DOM, and you'll be using Java 1.4 today. There's all kinds of XML support built into Java 1.4 (with earlier versions, you have to use third-party packages), and you're going to jump right in by seeing how to read in an XML document and extract all the data from it.

Share ThisShare This

Informit Network