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);
                }

No comments :

Post a Comment