Converting XDocument to XmlDocument and vice versa.
Posted
by Workshop Alex
on Stack Overflow
See other posts from Stack Overflow
or by Workshop Alex
Published on 2009-10-02T09:29:54Z
Indexed on
2010/05/20
11:50 UTC
Read the original article
Hit count: 297
It's a very simple problem that I have. I use XDocument to generate an XML file. I then want to return it as a XmlDocument class. And I have an XmlDocument variable which I need to convert back to XDocument to append more nodes.
So, what is the most efficient method to convert XML between XDocument and XmlDocument? (Without using any temporary storage in a file.)
© Stack Overflow or respective owner