I'm having some trouble loading an xml file into 'DOMDocument60'. It's a plain text file saved as XML. After the load in VBA it's missing the encoding line.
Any ideas? Many thanks in advance,
Dim MyDom As MSXML2.DOMDocument60
Set MyDom = New MSXML2.DOMDocument60
FILEL = "c:/temp/test.xml"
MyDom.Async = False
MyDom.validateOnParse = True
MyDom.Load (FILEL)
First Line
<?xml version="1.0" encoding="UTF-8"?>
Changes to
<?xml version="1.0"?>