I have to dialogue with a webservice whose response accepts a XElement object that represents a XML file. I have generated a XSD file from the XML and, via xsd.exe, I have generated a .cs class. What I want to know is: how I can convert the object from the .cs file into Xelement in order to provide it to the request? Is there a way to convert the XML to a XML object without declaring the nodes manually?
Best regards.