Gotcha with XmlDocument.Validate and XDocument.Load Posted by By sven.huebner.it May 1, 2021Posted inUncategorized TL;DR: XmlDocument.Validate is not a read-only operation. but changes the document tree. XDocument.Load(XmlReader) adds attributes, even if they are marked as unspecified.