Index: org/exolab/castor/xml/schema/writer/SchemaWriter.java =================================================================== --- org/exolab/castor/xml/schema/writer/SchemaWriter.java (Revision 6380) +++ org/exolab/castor/xml/schema/writer/SchemaWriter.java (Arbeitskopie) @@ -667,6 +667,10 @@ _handler.endElement(ELEM_CONTENT); } + if (complexType.getAnyAttribute() != null) { + processWildcard(complexType.getAnyAttribute(), schemaPrefix); + } + _handler.endElement(ELEMENT_NAME); } //-- processComplexType