XmlReader and schema caching

Hi,

When you use XmlReader to load and validate a document against a schema specified on the file system - is there any caching of that schema managed internally by the framework? Or will the reader open the schema from the file system every time?

Thanks

Donal

[285 byte] By [DonalMcWeeney] at [2007-12-24]
# 1

You can pass in a cached XmlSchemaCollection (.NET 1.1) or XmlSchemaSet (.NET 2.0) to the reader's Schemas property for validation.

The reader itself does not do any caching of schemas. If you can post your code sample, i can better understand your scenario.

Thanks,

Priya

PriyaLakshminarayanan at 2007-8-31 > top of Msdn Tech,.NET Development,XML and the .NET Framework...
# 2

Hi Priya,

That answered the question.

Thanks

Donal

DonalMcWeeney at 2007-8-31 > top of Msdn Tech,.NET Development,XML and the .NET Framework...

.NET Development

Site Classified