<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/xxsd2code/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/xxsd2code/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/xxsd2code/bugs/</id><updated>2012-02-23T13:45:51Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>XXsd2Code cannot compile Ecore.xsd</title><link href="https://sourceforge.net/p/xxsd2code/bugs/1/" rel="alternate"/><published>2012-02-23T13:45:51Z</published><updated>2012-02-23T13:45:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netee13195b297621ea65771f1a746c8b908a890d56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br /&gt;
I'm experimenting with Eclipse's EMF Ecore.xsd and it looks like XXsd2Code cannot compile it due to unsatisfied casting in the code:&lt;/p&gt;
&lt;p&gt;File Name = 'C:\Users\karel\src\crisis\Ecore.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaSimpleTypeList nelze p�etypovat na typ System.Xml.Schema.XmlSchemaSimpleTypeRestriction.&lt;br /&gt;
v XXsd2Code.CodeGenDom.GetComplexTypeAttributes(XmlSchemaComplexType complexType, Dictionary`2 classesToGenerateMap, Dictionary`2 enumsToGenerateMap, String namespaceName)'&lt;br /&gt;
File Name = 'C:\Users\karel\src\crisis\Ecore.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaSimpleTypeList nelze p�etypovat na typ System.Xml.Schema.XmlSchemaSimpleTypeRestriction.&lt;br /&gt;
v XXsd2Code.CodeGenDom.GetComplexTypeAttributes(XmlSchemaComplexType complexType, Dictionary`2 classesToGenerateMap, Dictionary`2 enumsToGenerateMap, String namespaceName)'&lt;br /&gt;
File Name = 'C:\Users\karel\src\crisis\Ecore.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaSimpleTypeList nelze p�etypovat na typ System.Xml.Schema.XmlSchemaSimpleTypeRestriction.&lt;br /&gt;
v XXsd2Code.CodeGenDom.GetComplexTypeAttributes(XmlSchemaComplexType complexType, Dictionary`2 classesToGenerateMap, Dictionary`2 enumsToGenerateMap, String namespaceName)'&lt;br /&gt;
File Name = 'C:\Users\karel\src\crisis\Ecore.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaSimpleTypeList nelze p�etypovat na typ System.Xml.Schema.XmlSchemaSimpleTypeRestriction.&lt;br /&gt;
v XXsd2Code.CodeGenDom.GetComplexTypeAttributes(XmlSchemaComplexType complexType, Dictionary`2 classesToGenerateMap, Dictionary`2 enumsToGenerateMap, String namespaceName)'&lt;br /&gt;
File Name = 'C:\Users\karel\src\crisis\Message.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaImport nelze p�etypovat na typ System.Xml.Schema.XmlSchemaInclude.&lt;br /&gt;
v XXsd2Code.CodeGenDom.DetectAndExtractNestedNamespaces(XmlSchema xsd, String xsdSchemaFileName, String orgDir, TargetLanguage targetLanguage)'&lt;br /&gt;
File Name = 'C:\Users\karel\src\crisis\Message.xsd' , Message = 'System.InvalidCastException: Objekt typu System.Xml.Schema.XmlSchemaSimpleTypeList nelze p�etypovat na typ System.Xml.Schema.XmlSchemaSimpleTypeRestriction.&lt;br /&gt;
v XXsd2Code.CodeGenDom.GetComplexTypeAttributes(XmlSchemaComplexType complexType, Dictionary`2 classesToGenerateMap, Dictionary`2 enumsToGenerateMap, String namespaceName)'&lt;/p&gt;
&lt;p&gt;Ecore.xsd file is attached for your convenience.&lt;/p&gt;
&lt;p&gt;Is there any work around for this issue or even patch available? I'm using latest binary release.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;
Karel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>