Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2004

    Unanswered: JiBX out binding, ns at structure level...

    Trying to bind this XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Response xmlns="" xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
    	<Struc xmlns="">
    	</Struc >
    	<Struc xmlns="">
    	</Struc >
    is there any way for JiBX to ignore the namespace at the structure level?

    At runtime JiBX errors out with expecting {}Response end tag but found {}Struc start tag

    Binding file:
    <binding name="outRequestDO">
    	<mapping name="Response" class="org.mystuff.dos.myDO">
    	<namespace uri="" default="elements" prefix=""/>
    		<collection field="Strucs" factory="org.jibx****ntime.Utility.arrayListFactory" usage="optional">
    			<structure name="Struc" type="org.mystuff.dos.myStrucDO" ordered="false" flexible="true" usage="optional">
    				<value name="field1" field="field1" usage="optional"/>
    				<value name="field2" field="field2" usage="optional"/>
    Last edited by JamesAvery22; 08-10-10 at 14:43.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts