I'm getting the exception below. In order to get more information on the root cause, I tried printing out the name and id of the ComplexType referenced at SourceFactory.java:1385). However, both are null. What should I look at in order to determine what I need to change in the .xsd file? IOW, how do I print out the contents of a ComplexType?


Exception in thread "main" java.lang.IllegalStateException: Unable to find attri
bute referenced :" xml:lang"
        at org.exolab.castor.xml.schema.AttributeDecl.getReference(AttributeDecl
.java:272)
        at org.exolab.castor.builder.binding.ExtendedBinding.getComponentBinding
Type(ExtendedBinding.java:170)
        at org.exolab.castor.builder.binding.XMLBindingComponent.setView(XMLBind
ingComponent.java:231)
        at org.exolab.castor.builder.SourceFactory.processAttributes(SourceFacto
ry.java:1288)
        at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFact
ory.java:1385)
        at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactor
y.java:394)
        at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerat
or.java:965)
        at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerat
or.java:861)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:348)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:410)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:441)
        at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:7
97)

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to