The latest
edition of the Java Developer Connection tech tips by
Stuart Halloway is all about XML, featuring an overall introduction
and examples showing how to use both SAX and DOM.
In his short introduction , Halloway compares XML to HTML and also to
SGML:
"if SGML is the 'kitchen sink,' XML is a 'Swiss Army
knife.'".
Developing his article around a simple XML example, Halloway
shows how to use the SAX2 and DOM APIs from the
JAXP
package to parse
the same document.