#763 Files not closed after validation

v9.0
closed
Michael Kay
.NET API (34)
5
2012-10-08
2008-01-17
Michael Kay
No

When using the .NET schema validation API, there are two cases where files are not closed after use:

(a) a schema document, if supplied to the SchemaManager in the form of a URI

(b) an instance document being validated, if supplied to the SchemaValidator in the form of a URI

A patch is being placed in Subversion. Affects the C# module Schema.cs

Discussion

  • Michael Kay
    Michael Kay
    2008-01-18

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.0.0.3

     
  • Michael Kay
    Michael Kay
    2008-03-08

    Logged In: YES
    user_id=251681
    Originator: YES

    The same problem applies when compiling a stylesheet using the Compile(Uri) method of the XsltCompiler. Fixing this has proved surprisingly complex, so I will not create a patch for this one, but will rather fix it in the next release. Circumvention: use the Compile(XmlReader) method instead.

     
  • Michael Kay
    Michael Kay
    2008-07-03

    Logged In: YES
    user_id=251681
    Originator: YES

    Original problem fixed in 9.0.0.3; subsequent XSLT Compiler problem fixed in 9.1.0.1