From: "Ivelin Ivanov" <[EMAIL PROTECTED]> > I would appreciate it if you can add the response you gave me below to the > Betwixt online FAQ. I have people asking me once in a while what tool to use > for java-xml mapping.
Done. > BTW, does betwixt unmarshall DOM nodes as well as JavaBeans? You mean take DOM nodes and turn them into JavaBeans? I'm not sure why anyone would want to do that, but it should be possible to write a DOMReader that reads a DOM rather than SAX (like the BeanReader); most of the work of Betwixt lies in the XMLIntrospector so this can be reused when other I/O mechanisms are developed. One new I/O mechanism that'd be useful for Betwixt would be to write a SAXWrtier that would allow Betwixt to work nicely in SAX based XML pipeline engines like Cocoon and Jelly. (I've just added this to the todo list). > How about JavaBeans with DOM nodes as attributes. Why would you want to do that? > I think Betwixt will be appropriate for implementing <xf:instance/> element > in the XMLForm framework of Cocoon 2.1. I plan to try it as soon as Betwixt > is released. > http://xml.apache.org/cocoon/xmlform/index.html Incidentally I think Jelly could well be useful with Cocoon, particularly as its based on the same XML pipeline idea. http://jakarta.apache.org/commons/sandbox/jelly/ It might be cool if Jelly had a Betwixt tag library so that betwixt could be used inside Jelly script to create beans from XML, process or validate them then output XML that Cocoon can style. James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
