Hello, I want to use a un-/marshaller for all Integer elements, e.g. <mapping name="something" class="MyClass1"> <namespace uri="http://ns1.com" prefix="ns1" default="all"> <structure name="intA" field="intA" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> <structure name="intB" field="intB" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> <structure name="intC" field="intC" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> </mapping>
<mapping name="somethingelse" class="MyClass2"> <namespace uri="http://ns2.com" prefix="ns2" default="all"> <structure name="intA" field="intA" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> <structure name="intB" field="intB" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> <structure name="intC" field="intC" marshaller="MyIntMarshaller" unmarshaller="MyIntMarshaller" /> </mapping> MyIntMarshaller implements IUnmarshaller, IMarshaller and IAliasable. Now I have the problem that sometimes the constructor gets called with wrong values for elementUri and elementName during marshalling, e.g. I get elementUri="http://ns2.com" and name="intB" for a instance of MyClass2 and field intA. Do I have a wrong understanding of the Unmarshaller? Should this work anyways? I'm using JiBX 1.1.5 and JDK 1.6. Thanks, Guido ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users