Tutorial: XML programming in Java

Free Download

Authors:

Size: 531 kB (544077 bytes)

Pages: 59/59

File format:

Language:

Publishing Year:

Category:

Tidwell D.

Our first tutorial, “Introduction to XML,” discussed the basics of XML and demonstrated its potential to revolutionize the Web. This tutorial shows you how to use an XML parser and other tools to create, process, and manipulate XML documents. Best of all, every tool discussed here is freely available at IBM’s alphaWorks site (www.alphaworks.ibm.com) and other places on the Web.

Table of contents :
XML application architecture……Page 2
Kinds of parsers……Page 3
The Document Object Model (DOM)……Page 4
The Simple API for XML (SAX)……Page 5
Why use SAX? Why use DOM?……Page 6
Resources – XML parsers……Page 7
Summary……Page 8
DOM interfaces……Page 9
Our first DOM application!……Page 10
Create a domOne object……Page 11
Process the DOM tree……Page 12
Sample node listing……Page 13
Know your Nodes……Page 14
Summary……Page 15
SAX events……Page 16
More SAX events……Page 17
saxOne overview……Page 18
Create a saxOne object……Page 19
Process SAX events……Page 20
Sample event listing……Page 21
SAX versus DOM – part two……Page 22
Summary……Page 23
Building a DOM tree from scratch……Page 24
Finishing our DOM tree……Page 25
Parsing an XML string……Page 26
Retrieving the text of our s……Page 27
Useful DOM methods for tree manipulation……Page 28
Using a different DOM parser……Page 29
Hope you enjoyed the show!……Page 30
For more information……Page 31
sonnet.dtd……Page 32
domOne.java……Page 33
domCounter.java……Page 35
saxOne.java……Page 37
saxCounter.java……Page 41
domBuilder.java……Page 44
parseString.java……Page 48
domSorter.java……Page 50
domTwo.java……Page 54
saxTwo.java……Page 56

Reviews

There are no reviews yet.

Be the first to review “Tutorial: XML programming in Java”
Shopping Cart
Scroll to Top