When an XMLDOMDocument saves itself, how can i get it to include the XML Declaration, e.g.:
You should be able to acheive the same thing by using the CreateProcessingInstruction method.
Example;
' Create and load a DOMDocument object.
Dim xmlDoc As New DOMDocument
Dim xRecords As IXMLDOMElement
' Make the Records the root node and add instructional line to XML file.
Set xRecords = xmlDoc.createElement("HeuristicFiler")
xmlDoc.appendChild xmlDoc.createProcessingInstruction("xml", "version=""1.0"" encoding=""UTF-8"" standalone=""yes""")
xmlDoc.appendChild xRecords
' Add various records
' Save the XML File
xmlDoc.Save strFilePath