以下 VBA 代码生<?xml version="1.0"?>
成为输出。
Dim XML As New DomDocument
Dim pi As IXMLDOMProcessingInstruction
'.... some code that sets the root element of the document
Set pi = XML.createProcessingInstruction("xml", "version='1.0' encoding='UTF-8'")
XML.insertBefore pi, XML.documentElement
为什么encoding="UTF-8"
左撇子?