private void Init( XmlReader reader ) { XmlValidatingReader vr = null; try { vr = new XmlValidatingReader( reader ); vr.EntityHandling = EntityHandling.ExpandEntities; vr.ValidationType = ValidationType.None; vr.ValidationEventHandler += new ValidationEventHandler(ValidationCallback); Load( vr ); } finally { vr.Close(); reader.Close(); } }