I create an XML document from code, and I need the statement to look like this:
<?xml version="1.0" encoding="UTF-8"?>
With the code that I wrote it only shows the version, How can I do it to show the coding?
<?xml version="1.0"?>
My code:
XmlDocument xmlDoc = new XmlDocument();
XmlDeclaration xmlDeclaracion = xmlDoc.CreateXmlDeclaration("1.0", "UTF-8", "yes"); ;