public override bool Read ()
{
if (!reader.Read ())
return false;
if (reader.NodeType == XmlNodeType.DocumentType && settings.ProhibitDtd)
throw new XmlException ("Document Type Definition (DTD) is prohibited in this XML reader.");
if (reader.NodeType == XmlNodeType.Whitespace &&
settings.IgnoreWhitespace)
return Read ();
if (reader.NodeType == XmlNodeType.ProcessingInstruction &&
settings.IgnoreProcessingInstructions)
return Read ();
if (reader.NodeType == XmlNodeType.Comment &&
settings.IgnoreComments)
return Read ();
return true;
}