xmlDoc.appendChild xmlDoc.createProcessingInstruction("xml", "version='1.0' encoding='UTF-8'")
 
Set rootElement = xmlDoc.createElement("Transaction")
xmlDoc.appendChild (rootElement)Set toElement_Header = xmlDoc.createElement("Transaction_Header")
rootElement.appendChild (toElement_Header)Set toElement = xmlDoc.createElement("id")
toElement_Header.appendChild (toElement)
Set toElementText = xmlDoc.createTextNode("001")
toElement.appendChild (toElementText)请问我想写<id type=G>001</id>
怎么写啊?