Hi Apurva, I'm not sure what you're trying to do here. The map-as="..." attribute says to use the specified abstract mapping to represent the corresponding object. If you're using the abstract mapping there's no reason to have any child elements.
If what you want is to *add* some more values to the abstract mapping, you *can* do that - but rather than using the map-as='com.ext.ConPt" attribute on the parent <structure>, embed a <structure map-as='com.ext.ConPt"/> element within that structure. This tells JiBX to apply the abstract mapping at that point within your definition, and allows you to add other stuff before and after. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 apurva mistry wrote: > Hi > I want to use the binding as defined below - > > <mapping class="MapA" abstract="true"> > : > : > <structure choice="true" field="conPt" map-as="com.ext.ConPt" > ordered="false" usage="optional"> > <structure field="telNum" map-as="com.ext.TelNum" usage="optional"/> > <structure field="pAddr" map-as="com.ext.PAddr" usage="optional"/> > <structure field="eAddr" map-as="com.ext.EAddr" usage="optional"/> > </structure> > : > </mapping> > > > But I get an error "map-as attribute cannot be used with children" > How to go about this, or whats the alternative. > > Thanks > Apurva. > > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users