Hi Jon,

This is an error in the binding.xsd and binding.dtd files. The correct 
order at present should be <namespace> first, followed by <include>, 
followed by <format> and the rest. I'm not completely happy with that 
ordering, though, at in 1.2 I'll probably change it so that <format> 
also comes before <include>. That way included bindings will be able to 
use format definitions from the including file.

Sorry for the confusion on this (and for yet another change to come).

  - Dennis

Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117



Kosmoski, Jon wrote:
>
> 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
>   


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

Reply via email to