Falk Langhammer wrote:

Dennis Sosnoski wrote at="2004-07-06T19:08":

That means that DomMapperBase.findNamespaceIndex() should be changed to treat a null URI as equivalent to "", and the first line should probably be changed from:


Hi Dennis,

DomMapperBase.findNamespaceIndex() has a second bug and I follow-up the most appropriate thread for this I could find.

If the <binding> element has a <namespace> child like

    <namespace uri="mynsuri" default="elements" prefix="myprefix"/>

then

    DomMapperBase.findNamespaceIndex(null,"mynsuri") returns -1.

It works ok if the <namespace> child lacks the prefix attribute. However, there is no reason why not to declare a prefix even for the default namespace (in cases where the deault namespace is out of scope by an intermediate default namespace xmlns attribute).

More importantly however, unmarshall() works while marshall() what was unmarshalled beforehand raises an exception. This breaks your symmetry design goal and is hard to debug for the user -- at least, it was for me ;-)

Keep up your great work,

Falk

I'm missing something about what's going on in this case. The findNamespaceIndex code assumes you'll supply the prefix if one is defined for the namespace. If the namespace is using a prefix and you don't supply that prefix in the call the -1 return seems correct to me.


I understand that you may have multiple namespace definitions, and that the default namespace at an outer level can be masked by an inner default namespace. I don't understand how the unmarshalling would create a reference to a masked namespace, though. Can you clarify how this is occurring? Thanks,

 - Dennis


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to