<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/xxsd2code/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/xxsd2code/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 23 Feb 2012 13:45:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xxsd2code/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>XXsd2Code cannot compile Ecore.xsd</title><link>https://sourceforge.net/p/xxsd2code/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 23 Feb 2012 13:45:51 -0000</pubDate><guid>https://sourceforge.netee13195b297621ea65771f1a746c8b908a890d56</guid></item></channel></rss>