Title: Binding compiler error with include followed by namespace

According to binding.xsd the following should be valid:
<binding name="SyncPurchaseOrder">
  <include path="BODBinding.xml" />
  <namespace uri="http://www.openapplications.org/oagis/9" default="elements" />
  <format type="java.util.Date"
        serializer="com.infor.xml.jibx.util.DateTimeSerializer.serialize"
        deserializer="com.infor.xml.jibx.util.DateTimeSerializer.deserialize"/>
  <mapping name="SyncPurchaseOrder" class="org.openapplications.oagis.BusinessObjectDocument">
    <structure map-as="BOD"/>
  </mapping>
</binding>

But I get this error during binding-compile:
  Expected "binding" end tag, found "namespace" start tag (line 3, col 80, in jibx-oagis/SyncPOBinding.xml)

If I remove the namespace element it compiles fine.
Any help would be much appreciated. Thx, - Jon
PS. Is the ability to have formats in included files there yet?
PPS. JiBX appears to be the fastest and most powerful XML-Java binding solution on the planet!

_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to