tag:blogger.com,1999:blog-2291731444407685134.post3939657010472519865..comments2024-02-29T09:56:39.369+01:00Comments on This blog is all about me doing nothing serious: Parsing XML with Commons Digester 2.0Jay Khimanihttp://www.blogger.com/profile/05578378976289426130noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2291731444407685134.post-35787407956816284822010-05-03T11:59:25.208+02:002010-05-03T11:59:25.208+02:00@ Keith, I've the digester rules file (digeste...@ Keith, I've the digester rules file (digesterRules) in my classpath, which am loading using the classloader of runtime class of the object. This helps me keeping my digester rules as separate configuration and also I can package it with my jar/war/ear. So digesterRules is a simple String which looks something like (com/jak/digester/config/digester-rules.xml)<br /><br />For full blown example of Digester please visit one of the links I mentioned in the start of my post.Jay Khimanihttps://www.blogger.com/profile/05578378976289426130noreply@blogger.comtag:blogger.com,1999:blog-2291731444407685134.post-84745646478244293692010-05-02T16:06:13.583+02:002010-05-02T16:06:13.583+02:00can you expound the code parsing a specific sample...can you expound the code parsing a specific sample pojo? and also i don't understand the "DigesterLoader.createDigester" section what object you call "getClass()". Also how did you create the "digesterRules" object. ThanksKeithhttps://www.blogger.com/profile/08418158925450913182noreply@blogger.comtag:blogger.com,1999:blog-2291731444407685134.post-81024395443450009562010-05-02T16:03:58.110+02:002010-05-02T16:03:58.110+02:00can you expound the code parsing a specific sample...can you expound the code parsing a specific sample pojo? and also i don't understand the "DigesterLoader.createDigester" section what object you call "getClass()". Also how did you create the "digesterRules" object. ThanksKeithhttps://www.blogger.com/profile/08418158925450913182noreply@blogger.com