You're looking for the "flexible='true'" attribute (since jibx 1.0):

<mapping name="container" class="com.company.Target" ordered="false"
flexible="true">
...

http://jibx.sourceforge.net/details/binding-attributes.html#structure

On Mon, 2007-06-11 at 09:38 +0200, [EMAIL PROTECTED] wrote:
> Hi,
> 
> When unmarshalling an XML document, JiBX assumes all XML tags are
> known and bound. If an unbound element occurs, JiBX throws an
> exception. Unfortunately, I am currently in an environment where the
> interface specs are not guaranteed accurate. It may occur that an XML
> document is received with an unforeseen element. I want to be able to
> get around this and just ignore such elements.
> 
> Is it possible to introduce a switch to make JiBX ignore unbound
> elements (with a warning) instead of throwing an exception? For
> example by adding an attribute to the binding tag.
> 
> Cheers,
> 
> Pieter
> -----------------------------------------------------------------
> ATTENTION:
> The information in this electronic mail message is private and
> confidential, and only intended for the addressee. Should you
> receive this message by mistake, you are hereby notified that
> any disclosure, reproduction, distribution or use of this
> message is strictly prohibited. Please inform the sender by
> reply transmission and delete the message without copying or
> opening it.
> 
> Messages and attachments are scanned for all viruses known.
> If this message contains password-protected attachments, the
> files have NOT been scanned for viruses by the ING mail domain.
> Always scan attachments before opening them.
> -----------------------------------------------------------------
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to