Hello all,
I have a question creating xml documents. I want to create the following line in my xml document:
<?xml version="1.0" encoding="ISO-8859-1"?>
I have the following code:
dim vCodeSetInstruction As IXMLDOMProcessingInstruction
dim g_XmlDoc as MSXML2.DOMDocument
Set g_XmlDoc = New MSXML2.DOMDocument
Set vCodeSetInstruction = g_XmlDoc.createProcessingInstruction _
("xml", "version=""1.0"" encoding=""ISO-8859-1"""
g_XmlDoc.appendChild vCodeSetInstruction
When I write this to a file I see only this:
<?xml version="1.0"?>
Where is my encoding? How can I write this into the processing instruction? Am I doing something wrong?
Any help would be appreciated.
Regards
Chris
I have a question creating xml documents. I want to create the following line in my xml document:
<?xml version="1.0" encoding="ISO-8859-1"?>
I have the following code:
dim vCodeSetInstruction As IXMLDOMProcessingInstruction
dim g_XmlDoc as MSXML2.DOMDocument
Set g_XmlDoc = New MSXML2.DOMDocument
Set vCodeSetInstruction = g_XmlDoc.createProcessingInstruction _
("xml", "version=""1.0"" encoding=""ISO-8859-1"""
g_XmlDoc.appendChild vCodeSetInstruction
When I write this to a file I see only this:
<?xml version="1.0"?>
Where is my encoding? How can I write this into the processing instruction? Am I doing something wrong?
Any help would be appreciated.
Regards
Chris