09-22-2009, 10:58 AM
You can use 'AddDeclaration' method. This will add the xml declaration to your xml doc.
see the code below
see the code below
Code:
Set oXML = XMLUtil.CreateXML
oXML.Loadfile "C:\books.xml" 'replace with your xml path
oXML.AddDeclaration "1.0","UTF-8","no"
oXML.SaveFile "C:\books.xml" 'replace with your xml path