Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-13) was last changed on 23-May-2006 10:46 by Jérôme Duprez  

This page was created on 26-Oct-2001 12:31 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 4 changed one line
At line 10 changed 3 lines
[JanneJalkanen]: I found an interesting link to [Castor|http://castor.exolab.org/], a way to marshal/unmarshal
[Java Bean]s into [XML]. There's a good article explaining what Castor is at
[onjava.com|http://www.onjava.com/pub/a/onjava/2001/10/24/xmldatabind.html]
[JanneJalkanen] : I found an interesting link to [Castor|http://castor.exolab.org/], a way to marshal/unmarshal [Java Bean]s into [XML]. There's a good article explaining what Castor is at [onjava.com|http://www.onjava.com/pub/a/onjava/2001/10/24/xmldatabind.html]
[PhilippeO] : I rather prefer [Dom4J|http://www.dom4j.org/], or [JDOM|http://www.jdom.org] for that.
[TomZ]: I have used both ([JDOM|http://www.jdom.org] and Castor XML) in some projects. I feel that
these frameworks try to solve different problems:
;JDOM: Tries to provide direct access to an XML document in a more obvious oo-like style. While...
;Castor XML: is a framework for (un)marshalling Java objects to XML files. For example, if you have an XML Schema, Castor will create for you all java classes you need. That was really amazing to me when I tested it first time. A tag like <my-tag> will become a class called ''MyTag'' with all methods you need to manipulate this class in a way that is consistent with what the schema says. When you got those classes you work with them as with ''normal'' java classes. Finally, you just marshall them back with just one call.
[DuncanMcGregor] has just been using [XStream|http://xstream.codehaus.org/], and finds it great for unsophisticated read and write object graphs.
YishayMor: In [our notes|http://www.weblabs.eu.com/wr/users/Yishay/webreports/notes/index.jsp] prototype uses [java.beans.XMLDecoder |http://java.sun.com/j2se/1.4.2/docs/api/java/beans/XMLDecoder.html] and [java.beans.XMLEncoder | http://java.sun.com/j2se/1.4.2/docs/api/java/beans/XMLEncoder.html]. Its a quick 'n dirty sollution, and not a bad one as far as that goes. You have no control over the schema, but using it is very straightforward. \\
We used Castor back in Cisco. It was reasonable. I'd also look into SUN's [JAXB |http://java.sun.com/xml/downloads/jaxb.html]. As for search etc., you might want to consider an [XML database|http://xml.apache.org/xindice/] (unless the point was to avoid the DB in the first place).
Whenever I need to do some new XML project, I take a look and see what's new on [http://www.xml.org/] and [http://www.alphaworks.ibm.com/xml]. [Dennis Sosnoski | http://www-106.ibm.com/developerworks/library/x-databdopt2/index.html]'s article compares several technologies, and is probably worth a read.
Version Date Modified Size Author Changes ... Change note
13 23-May-2006 10:46 2.815 kB Jérôme Duprez to previous
12 23-May-2006 09:32 16.332 kB 221.165.193.61 to previous | to last
11 06-Dec-2004 10:29 2.815 kB DuncanMcGregor to previous | to last
10 26-Sep-2003 09:30 2.666 kB JeroenWenting to previous | to last
9 06-May-2003 00:53 2.62 kB YishayMor to previous | to last
8 06-May-2003 00:48 2.16 kB YishayMor to previous | to last
7 05-May-2003 11:17 1.574 kB TomZ to previous | to last
6 04-May-2003 23:45 1.552 kB Ebu to previous | to last
5 04-May-2003 19:28 1.561 kB TomZ to previous | to last
4 04-May-2003 19:24 1.563 kB TomZ to previous | to last
3 04-May-2003 03:17 0.797 kB PhilippeO to previous | to last
2 26-Oct-2001 12:32 0.737 kB unknown to previous | to last
1 26-Oct-2001 12:31 0.723 kB unknown to last
« This page (revision-13) was last changed on 23-May-2006 10:46 by Jérôme Duprez