Xdocument does not print declaration
问题 I try to use the domainpeople.com API and to do I need to use XML. Currently I have an error saying "apiProtocol is not found" I guess then that my Xml document is malformed. The Current xml sent is : <apiProtocol version="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNameSpaceSchemaLocation="checkrequest.xsd"> <checkRequest user="ifuzion" password="fish4gold121" reference="123456789"> <domain name="google.com" /> </checkRequest> </apiProtocol> Apparently the <?xml?> part