Be cautious using XPathDocument and DTDs.
From the docs: “There are two ways to read an XML document in the System.Xml.XPath namespace. One is to read an XML document using the read-only XPathDocument class and the other is to read an XML document using the editable[…]
Read more