[ http://jira.codehaus.org/browse/JIBX-34?page=all ]

Dennis Sosnoski updated JIBX-34:
--------------------------------

      Assign To: Dennis Sosnoski
    Description: 
Currently, namespace attributes of the document's root node like 
"xsi:noNamespaceSchemaLocation=..." or "xsi:schemaLocation=..." have to be 
mapped in the binding definition in order to be (un)marshalled. 
A simpler solution for this is desired. 
One possible approach would be to provide methods for accessing these 
attributes at runtime at the level of (Un)MarshallingContext. Thus the 
creation/retrieval of a particular Document could be customized.

  was:
Currently, namespace attributes of the document's root node like 
"xsi:noNamespaceSchemaLocation=..." or "xsi:schemaLocation=..." have to be 
mapped in the binding definition in order to be (un)marshalled. 
A simpler solution for this is desired. 
One possible approach would be to provide methods for accessing these 
attributes at runtime at the level of (Un)MarshallingContext. Thus the 
creation/retrieval of a particular Document could be customized.

    Environment: 

I've made some moves in this direction since the issue was originally filed. 
You can now add namespaces using the IXMLWriter methods for marshalling. 
Unmarshalling is more difficult to handle, but it can be done using a pre-set 
method (which will be called while the parser is positioned on the start tag). 
This is an ugly kind of workaround, but probably the best we'll have for the 
1.X version.

> Simple support for marshalling/unmarshalling namespace attributes.
> ------------------------------------------------------------------
>
>          Key: JIBX-34
>          URL: http://jira.codehaus.org/browse/JIBX-34
>      Project: JiBX
>         Type: Improvement
>   Components: core
>     Versions: 1.0-beta3a, 1.0-beta3b, 1.0-beta3c
>     Reporter: Tilman Linden
>     Assignee: Dennis Sosnoski
>     Priority: Minor

>
>
> Currently, namespace attributes of the document's root node like 
> "xsi:noNamespaceSchemaLocation=..." or "xsi:schemaLocation=..." have to be 
> mapped in the binding definition in order to be (un)marshalled. 
> A simpler solution for this is desired. 
> One possible approach would be to provide methods for accessing these 
> attributes at runtime at the level of (Un)MarshallingContext. Thus the 
> creation/retrieval of a particular Document could be customized.

-- 
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: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to