[ http://jira.codehaus.org/browse/JIBX-18?page=comments#action_44566 ] 

Dennis Sosnoski commented on JIBX-18:
-------------------------------------

It's a requirement for 2.0. This actually requires a lot of complexity behind 
the scenes, when you consider optional elements. JiBX has to figure out for 
each point in the unmarshalling a list of possible next elements that it knows 
about, then loop through discarding input elements until one of the elements on 
the list is found. It then has to process that element. I've got techniques in 
mind which should handle this without much impact on performance for normal 
cases, but don't want to try building them around the current code generation.

> Tolerate unexpected elements
> ----------------------------
>
>          Key: JIBX-18
>          URL: http://jira.codehaus.org/browse/JIBX-18
>      Project: JiBX
>         Type: Improvement
>   Components: core
>     Versions: 1.0-beta3a
>  Environment: JDK 1.4.2
>     Reporter: Falk Langhammer
>     Assignee: Dennis Sosnoski
>     Priority: Minor

>
>
> JiBX beta3a creates unmarshalling code which tolerates deviations from an 
> ideal XML document described by the binding.
> So far so good.
> This tolerance however, is bound to unexpected attributes found in a tag. It 
> should ignore an unexpected element (and all its childs) until it sees an 
> expected element again. It should only throw an exception if it does not see 
> all expected elements.
> It is normal that somebody adds content to XML and JiBX-generated code should 
> not fail afterwards.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to