XML文档解析Java类库 Degister 3.1 发布
fmms 13年前
<p><a href="/misc/goto?guid=4958196740060221405" target="_blank">Digester</a>基于规则的XML文档解析,主要用于XML到Java对象的映射。Struts就是用Digester来处理XML配置文件的。而且Digester还包含一个写好的RSS解析器。<br /> <img title="XML文档解析Java类库 Degister 3.1 发布" border="0" alt="XML文档解析Java类库 Degister 3.1 发布" src="https://simg.open-open.com/show/697cb780b6e1ca0606bc7a2d04c8d72b.png" width="300" height="100" /></p> <p>下面是一段使用 Digester 解析 XML 的代码:</p> <pre class="brush:java; toolbar: true; auto-links: false;">Digester digester = new Digester(); digester.setValidating(false); digester.addObjectCreate("foo", "mypackage.Foo"); digester.addSetProperties("foo"); digester.addObjectCreate("foo/bar", "mypackage.Bar"); digester.addSetProperties("foo/bar"); digester.addSetNext("foo/bar", "addBar", "mypackage.Bar"); Foo foo = (Foo) digester.parse();</pre>Apache Commons Degister 3.1 发布了,该版本新增了特性是使用 Java 5 的并发 API 做异步的 parse() 处理。 <p></p> <div class="section"> <h2>Apache Commons Digester 3.1 (minium JDK 1.5)<a name="Apache_Commons_Digester_3.1_minium_JDK_1.5"></a></h2> <div class="section"> <h3>Binaries<a name="Binaries"></a></h3> <table class="bodyTable ke-zeroborder" border="0"> <tbody> <tr class="a"> <td><a href="/misc/goto?guid=4958196740803115189">commons-digester3-3.1-bin.tar.gz</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196741554121798">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196742288773443">pgp</a></td> </tr> <tr class="b"> <td><a href="/misc/goto?guid=4958196743031202496">commons-digester3-3.1-bin.zip</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196743766124297">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196744503383168">pgp</a></td> </tr> </tbody> </table> </div> <div class="section"> <h3>Source<a name="Source"></a></h3> <table class="bodyTable ke-zeroborder" border="0"> <tbody> <tr class="a"> <td><a href="/misc/goto?guid=4958196745238841851">commons-digester3-3.1-src.tar.gz</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196745974336800">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196746713852685">pgp</a></td> </tr> <tr class="b"> <td><a href="/misc/goto?guid=4958196747447464182">commons-digester3-3.1-src.zip</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196748191771501">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196748924278188">pgp</a></td> </tr> </tbody> </table> </div> </div> <div class="section"> <h2>Apache Commons Digester 2.1 (minimum JDK 1.5)<a name="Apache_Commons_Digester_2.1_minimum_JDK_1.5"></a></h2> <div class="section"> <h3>Binaries<a name="Binaries"></a></h3> <table class="bodyTable ke-zeroborder" border="0"> <tbody> <tr class="a"> <td><a href="/misc/goto?guid=4958196749660610414">commons-digester3-2.1-bin.tar.gz</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196750398390896">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196751135749898">pgp</a></td> </tr> <tr class="b"> <td><a href="/misc/goto?guid=4958196751868240537">commons-digester3-2.1-bin.zip</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196752609774541">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196753345135824">pgp</a></td> </tr> </tbody> </table> </div> <div class="section"> <h3>Source<a name="Source"></a></h3> <table class="bodyTable ke-zeroborder" border="0"> <tbody> <tr class="a"> <td><a href="/misc/goto?guid=4958196754088442739">commons-digester3-2.1-src.tar.gz</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196754823970094">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196755581723563">pgp</a></td> </tr> <tr class="b"> <td><a href="/misc/goto?guid=4958196756320096448">commons-digester3-2.1-src.zip</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196757052412656">md5</a></td> <td><a class="externalLink" href="/misc/goto?guid=4958196757794480550">pgp</a></td> </tr> </tbody> </table> </div> </div> <div class="section"> <h2>Archives<a name="Archives"></a></h2> <p>Older releases can be obtained from the archives. </p> <ul> <li class="download"><a href="/misc/goto?guid=4958196758531163481">browse download area</a></li> <li><a class="externalLink" href="/misc/goto?guid=4958196759277004927">archives...</a></li> </ul> </div> <p></p>