https://bugzilla.novell.com/show_bug.cgi?id=433774
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=433774#c1 --- Comment #1 from Atsushi Enomoto <[EMAIL PROTECTED]> 2008-10-27 16:35:42 MDT --- much simplified version: ---- 433774.cs using System; using System.Xml; using System.Xml.Schema; public class Test { public static void Main () { XmlDocument doc = new XmlDocument(); doc.LoadXml("<Root version='3' xmlns='urn:foo'/>"); XmlSchemaSet schemaSet = new XmlSchemaSet(); schemaSet.Add(XmlSchema.Read(XmlReader.Create("433774.xsd"), null)); doc.Schemas = schemaSet; XmlNode root = doc.DocumentElement; doc.Validate(null, root); } } ---- 433774.xsd <xs:schema targetNamespace="urn:foo" xmlns="urn:foo" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Root"> <xs:complexType> <xs:sequence> </xs:sequence> <xs:attribute name="version" type="xs:string" fixed="3" /> </xs:complexType> </xs:element> </xs:schema> -- 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
