Hello everyone.
        I am new to using Castor.   I am attempting to use the source
generator to create my classes from a complex XML file.   When I use the
following command, I keep getting these warnings for multiple elements, such
as 'AttendedSchool'.   The classes that get generated have multiple errors
in them, and will not compile.  If anyone could please give me some
pointers, it would be greatly appreciated.  Thanks.


Command used:
org.exlob.castor.builder.SourceGenerator -i
c:\crc\CommonLineRequest_v1.0.6.xsd -generateImportedSchemas -f
-binding-file c:\crc\binding.xml -dest c:\crc


Warning: A class name generation conflict has occured between element
'AttendedSchool' and element 'AttendedSchool'. Please use a Binding file to
solve this problem.Continue anyway [not recommended] (y|n|?)y


Here is my binding.xml file.

<binding defaultBindingType="type">
        <package>
                <name>org.kheaa.crc.data.core</name>
                <namespace>urn:org:pesc:core:CoreMain:v1.0.2</namespace>
        </package>
        <package>
                <name>org.kheaa.crc.data.ffelp</name>
        
<namespace>urn:org:pesc:sector:Aid-Delivery-FFEL:v1.0.6</namespace>
        </package>
        <package>
                <name>org.kheaa.crc.data</name>
                <namespace />
        </package>
        <namingXML>
                <complexTypeName>
                        <suffix>Type</suffix>
                </complexTypeName>
        </namingXML>
</binding>


Mike Perry

Reply via email to