Ok, so I found the example mapper but I still don't quite grasp how I
can implement a mapper that can handle a mixed element. From what I see
it looks like an unmarshaller is supposed to handle translating 1
element into an object which is then used to set a property on another
object. Suppose I want to take this structure...
<Comment>
<Attachement>
<URL>cid:[EMAIL PROTECTED]</URL>
</Attachment>
Here are my comments that go with this attachment.
</Comment>
and map it into this Object model...
public class Foo
{
private String attachmentUrl;
private String commentText;
}
Thanks,
Norm
--- Begin Message ---
hello,
tutorial/example14/HashMapper.java is a sample marshaller
and unmarshaller. it also has accompanying documentation
in the tutorial ( see
jibx-beta3a/docs/binding-custom.html#marunmar )
thanks, eitan
On Apr 30, 2004, at 10:14 AM, Norm Deane wrote:
Has there been any work done to handle mixed element binding in JiBX?
ie.
<foo>
<bar>hello</bar>
Some more text in this element.
</foo>
I saw a post in the archive that mentioned using a custom
marshaller/unmarshaller but don't understand all that is involved.
According to the post there is supposed to be a sample marshaller and
unmarshaller but I can't find them.
Thanks,
Norm
--- End Message ---