[Mono-bugs] [Bug 617264] New: RelaxNG validator fails to load patterns

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 24 18:05:56 EDT 2010



           Summary: RelaxNG validator fails to load patterns
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: i686
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: guillaumeradde at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Using Commons.Xml.Relaxng
Trying to load a relaxng schema using the following code:

RelaxngPattern p = null;
using(XmlTextReader schema = new XmlTextReader("MySchema.rng"))
  p = RelaxngPattern.Read(schema);

I get the following exception:

Commons.Xml.Relaxng.RelaxngException : Expected EndElement but found Element.

Here is the content of the relaxng schema I'm trying to load:

<?xml version="1.0" encoding="UTF-8"?>
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0"

    <rng:define name="Timestamp">
        <rng:data type="string">

The same schema works fine with Jing.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list