Use XDocument instead of XmlDocument

I had the problem that loading a svg document with XmlDocument takes a half minute.
Using the XDocument solves the bad perfomance.
This patch also solves the isssue #137