hi lenny, i personally think that's very hard to do. jibx uses (more or less) a stack for it's internal work when creating XML, and it assumes well- formed XML being put into its internal data structure , so when you overwrite the standard behaviour of the marshaller you will always be bound to these assumptions. of course you could overwrite JiBX at all but that won't make much sense. furthermore, there's no general approach for transforming hierarchical data (like XML) into a list view, so you solution will be very much limited to you own, current data structure.
br, günther Am 13.05.2008 um 03:20 schrieb Bonilla, Lenny: > > Hi guys, > > I'm using JiBX for a standard pojo to XML layer, but I'd like to > extend > this to build a simple pojo to CSV layer. I'm thinking it would be > pretty straight forward to reuse JiBX mappings to generate CSVs (for > simple tabular data of course). This way I don't have to start > messing > with XML/XSLT. I'm guessing there is some JiBX class that I could > extend/customize to do this (where it would marshall comma-delimited > text instead of XML tags, the header row would come from the JiBX > element names). Does anyone have any thoughts on how I would do > this in > a relatively easy way (just overriding some default JiBX behavior)? > Or > perhaps, have an alternative design in mind? > > Thanks, > Lenny Bonilla > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - > > This message is intended only for the personal and confidential use > of the designated recipient(s) named above. If you are not the > intended recipient of this message you are hereby notified that any > review, dissemination, distribution or copying of this message is > strictly prohibited. This communication is for information purposes > only and should not be regarded as an offer to sell or as a > solicitation of an offer to buy any financial product, an official > confirmation of any transaction, or as an official statement of > Lehman Brothers. Email transmission cannot be guaranteed to be > secure or error-free. Therefore, we do not represent that this > information is complete or accurate and it should not be relied upon > as such. All information is subject to change without notice. > > -------- > IRS Circular 230 Disclosure: > Please be advised that any discussion of U.S. tax matters contained > within this communication (including any attachments) is not > intended or written to be used and cannot be used for the purpose of > (i) avoiding U.S. tax related penalties or (ii) promoting, marketing > or recommending to another party any transaction or matter addressed > herein. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien [EMAIL PROTECTED] http://www.creative-it.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users