Showing posts with label How to convert xElement to XML Node in C#. Show all posts
Showing posts with label How to convert xElement to XML Node in C#. Show all posts

Tuesday, January 2, 2018

How to convert xElement to XML Node in C#


XElement oXML = new GenerateXML().GetXML(obj);

                XmlDocument xmlDoc = new XmlDocument();

                using (XmlReader xmlReader = oXML.CreateReader())
                {
                    xmlDoc.Load(xmlReader);
                }