Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
検証する XML ファイルが大きい (>500MB) 場合、XmlReader は検証を実行するためにすべてをメモリに取り込みますか?
検証手順については、C# で参照されているXSDに対する XML の検証を参照しました。
ありがとう、マーク
いいえ、使用した場合XmlValidatingReader(またはXmlReader適切な設定を使用した場合)、XML ファイル全体は読み込まれません。質問で説明されている方法は、ファイル全体をロードするXmlDocumentクラスを使用します。受け入れられた回答はファイル全体をロードしないため、問題なく使用できます。
XmlValidatingReader
XmlReader
XmlDocument