Re: [jibx-users] Merge two fields into one

2013-05-14 Thread John Smith
Hi. Thanks. So i need to implement the IUnmarshaller? I'll check it out. But I also have one more option. I need to convert my model to a custom string so I can do the conversion when I implement my toString(); On Mon, May 13, 2013 at 3:28 PM, Archie Cobbs arc...@dellroad.org wrote: You'd

[jibx-users] Parent Node that changes but only require read of child nodes.

2013-05-14 Thread John Smith
So I'm in the process of painfully taking one XML format and basically flatening it to have one main root node and all the elements under it. I have the following fragment parent-mc cardNumber1234567890/cardNumber /parent-mc parent-vi cardNumber1234567890/cardNumber /parent-vi

Re: [jibx-users] Merge two fields into one

2013-05-14 Thread John Smith
I'm taking an XML file and flattening it and converting to Key Value pairs. So I can keep the date as is in two separate properties and when I convert the model to Key Value pairs I can do the merge there. But I will investigate (Un)marshaller as I suspect I will need it for my next bit I

Re: [jibx-users] Parent Node that changes but only require read of child nodes.

2013-05-14 Thread John Smith
This is the DTD I'm trying to accommodate !ELEMENT someNode ( (ABC | DEF | GHI | JKL | MNO | - There's about twenty of these which represent pretty much the same object. No clue why this was done, but I'm stuck with it. I wish I could just ignore but I need to remember this value.

Re: [jibx-users] Parent Node that changes but only require read of child nodes.

2013-05-14 Thread Archie Cobbs
You could create a bunch of fake bean properties with corresponding names that all set the underlying real property accordingly. Alternately, insert an XSL transform in the pipeline that would get applied prior to JiBX seeing the XML. -Archie On Tue, May 14, 2013 at 12:00 PM, John Smith

Re: [jibx-users] Parent Node that changes but only require read of child nodes.

2013-05-14 Thread John Smith
Can i get the name of a tag and set it as a value on my pojo? On Tue, May 14, 2013 at 2:18 PM, Archie Cobbs arc...@dellroad.org wrote: You could create a bunch of fake bean properties with corresponding names that all set the underlying real property accordingly. Alternately, insert an XSL