diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-03-22 18:46:22 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-03-22 18:46:22 +0300 |
commit | 76a1671b91e4451f312d8bc18b609c635b4b41aa (patch) | |
tree | 1132d4d034e97c0384d48191913477473458ac21 /mcs/class/System.XML/System.Xml/XmlValidatingReader.cs | |
parent | bf86f5ec7b05763aae569c2787f79cd6f0206b60 (diff) |
2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlValidatingReader.cs : create schema set on demand.
svn path=/trunk/mcs/; revision=42119
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlValidatingReader.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlValidatingReader.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs b/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs index e98243ddc1a..cf3de70eea1 100644 --- a/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs @@ -75,7 +75,6 @@ namespace System.Xml resolver = new XmlUrlResolver (); entityHandling = EntityHandling.ExpandEntities; validationType = ValidationType.Auto; - schemas = new XmlSchemaSet (); storedCharacters = new StringBuilder (); } @@ -280,6 +279,8 @@ namespace System.Xml public XmlSchemaCollection Schemas { get { + if (schemas == null) + schemas = new XmlSchemaSet (); return schemas.SchemaCollection; } } |