https://bugzilla.novell.com/show_bug.cgi?id=332875

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=332875#c3


Guttorm Husveg <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #3 from Guttorm Husveg <[EMAIL PROTECTED]>  2008-01-16 07:38:07 MST 
---
We've discovered similar bug, a rather simple xsd-file causes ReadXmlSchema to
fail when running under MONO (both on Windows and Ubuntu).
If same xsd and testprogram is running under .NET and Windows, it works OK.
The content of the xsd provoking the bug follows: 

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" >
  <xs:complexType name = "PanelType">
    <xs:sequence>
      <xs:element name="Name"           type="xs:string"          
minOccurs="1" maxOccurs="1" />
      <xs:element name="Content"                type="ContentType"       
minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name = "ContentType">
    <xs:choice>
     <xs:element name="Panel"             type="PanelType"             
minOccurs="0" maxOccurs="1" />
     <xs:element name="Source"          type="SourceType"       minOccurs="0"
maxOccurs="1" />          
    </xs:choice>
  </xs:complexType>
  <xs:complexType name = "SourceType">
    <xs:sequence>
      <xs:element name="Name"             type="xs:string"      minOccurs="0"
maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DashboardNode" msdata:IsDataSet="true" >
    <xs:complexType>
      <xs:sequence>
              <xs:element name="Panel" type = "PanelType"></xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

If f.ex. changing Source's type from SourceType to xs:string, it works ok.

If anybody have workarounds or similar, please contact me as this makes it
currently difficult for us to make use of MONO.

Guttorm


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to