Jim, I try it with the regular Java with no reflection limits. Thanks, Serge

Jim Redman wrote:


Serge,

On 06/08/04 10:57:17, Serge Vilvovsky wrote:


Hello,
I am looking for one that will be integrated to the small device soft. Could you, please, let me know if Castor is answering our requests.


It must be rather small (we already have SAX parser integrated, so it can be based on it) and fast (that's not mandatory but desirable)
It must validate the incoming and outgoing documents according to DTD (I suppose I can easily convert it to XML scheme)
It must convert the XML document to Java object tree and vice versa. Very desirably not reflection based


I'm not the worlds expert on Castor, but if you're trying to get it onto SavaJe (CLDC) I think you might have problems. The absence of reflection is a big issue.

The only solution we found when porting our factory automation components to CLDC was to for any bean that could be read from an archive to implement an interface that sets the appropriate properties. We then use a SAX parse (MinML) to read the file and call the appropriate method in the interface. Simple, effective, inelegant and non-transparent.

You could acheive something similar with code generation and I think that Castor may offer some help there, but I suspect that reflection may still be a problem for you.

Jim




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to