I would like to know the difference of XmlDocument and XElement.
XmlDocument represents an entire XML document. You can use this class to manipulate XML files.
XmlDocument
XElement