SyntaxFix
Write A Post
Hire A Developer
Questions
For me this single line solution works very well
XDocument y = XDocument.Parse(pXmldoc.OuterXml); // where pXmldoc is of type XMLDocument