Re: Commons betwixt 0.8 - reading Map from XML

2008-09-06 Thread Simone Tripodi
a/group/entry", 1, true); > >// a little later > >InputStream is = > servletContext.getResourceAsStream("WEB-INF/classes/metadata.xml"); >Object result = digester.parse(is); > > And it works. The resulting data structure is: Map Metadat

Re: Commons betwixt 0.8 - reading Map from XML

2008-09-05 Thread Dmitriy Kuznetsov
ram("metadata/group/entry", 0, "name"); digester.addCallParam("metadata/group/entry", 1, true); // a little later InputStream is = servletContext.getResourceAsStream("WEB-INF/classes/metadata.xml"); Object result = digester.parse(is); And it works. T

Re: Commons betwixt 0.8 - reading Map from XML

2008-09-02 Thread Simone Tripodi
ap. If i have > to anjust my XML file to accomplish this, it's ok. If there is a solution, > that allows to keep information about order of entries in XML file, i would > better implement it, instead of plain map. > Could you pl

Commons betwixt 0.8 - reading Map from XML

2008-09-01 Thread Dmitriy Kuznetsov
how to load Map from XML? I understand, that my question may be lame. But i am trying variants, tracing code and looking for answer for about three days, and found nothing that could help. I believe it would be perfect to have a sample or entry in FAQ with working code that loads Map from XML. -- Vi