I was reading an article in JavaWorld, and came across a reference to the Digester class. It sounds very interesting. I want to learn more, but where do I start? I went to the Apache web site and if the link is there I missed it. I am reading through the API Documentation, and it's a bit dry.
Here is a quote from JavaWorld:
*****************
The org.apache.commons.digester.Digester class provides a simple API for parsing XML documents. The Digester class lets you assign processing rules to element-matching patterns. The processing rules tell the Digester what to do and the element-matching patterns tell the Digester when to do it.
For example, suppose you add a processing rule with the element-matching pattern a/b. The processing rule executes when the Digester finds a top-level <a> element containing a <b> element. A processing rule, by definition, is any class that extends the org.apache.commons.digester.Rule class. However, many useful processing rule implementations are already included with the Digester code. Once you get used to them, you'll find that you can do almost anything necessary when parsing configuration files.
********************
Neat, huh? Anyone have ideas on a good approach to learning more? Book? Article? Website?
Here is a quote from JavaWorld:
*****************
The org.apache.commons.digester.Digester class provides a simple API for parsing XML documents. The Digester class lets you assign processing rules to element-matching patterns. The processing rules tell the Digester what to do and the element-matching patterns tell the Digester when to do it.
For example, suppose you add a processing rule with the element-matching pattern a/b. The processing rule executes when the Digester finds a top-level <a> element containing a <b> element. A processing rule, by definition, is any class that extends the org.apache.commons.digester.Rule class. However, many useful processing rule implementations are already included with the Digester code. Once you get used to them, you'll find that you can do almost anything necessary when parsing configuration files.
********************
Neat, huh? Anyone have ideas on a good approach to learning more? Book? Article? Website?