A wise old hermit known only as Boris Tamarkin <[EMAIL PROTECTED]> once said:
> Any way to generate toXML method for value objects or data objects using > XDoclet? It's come up before; it was felt that adding converters to particular formats was bad practise and you're better to create a translator class that takes the VO and converts it as required by your use case. If you want to be really fancy, write a generic one that uses introspection to work with any supplied VO. "But XML's a standard representation," I hear you cry. Yup, and so's CSV, tab-delimited, RTF, etc. Should the VO/dataobject contain formatters for all those too? I think not. So why should XML be any different? Of course, if you absolutely *have* to have a toXml() method in the VO/DO, you can always override the built-in template with one you've customised to add it... Andrew. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
