diff --git a/XmlSchemaClassGenerator.Tests/xsd/simple/any.xsd b/XmlSchemaClassGenerator.Tests/xsd/simple/any.xsd index 7b0ae60a..b84a0cb9 100644 --- a/XmlSchemaClassGenerator.Tests/xsd/simple/any.xsd +++ b/XmlSchemaClassGenerator.Tests/xsd/simple/any.xsd @@ -7,31 +7,48 @@ xmlns:mstns="http://tempuri.org/default.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" > - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/XmlSchemaClassGenerator/ModelBuilder.cs b/XmlSchemaClassGenerator/ModelBuilder.cs index d186fa9e..8e15ad36 100644 --- a/XmlSchemaClassGenerator/ModelBuilder.cs +++ b/XmlSchemaClassGenerator/ModelBuilder.cs @@ -597,7 +597,7 @@ private TypeModel CreateTypeModel(XmlSchemaComplexType complexType) if (baseType is not XmlSchemaComplexType baseComplexType) continue; - if (baseComplexType.AttributeWildcard != null) + if (baseComplexType.QualifiedName != AnyType && baseComplexType.AttributeWildcard != null) { hasAnyAttribute = false; break;