XML出力 with MSXML 3.0

VBA で XML をファイル出力する

■準備

参照設定: Microsoft XML, v3.0

xmlString にはXMLの文字列が入っているとする。

非常に便利。

■コード

Dim doc As New DOMDocument30

doc.async = False

doc.validateOnParse = True

doc.resolveExternals = False

doc.loadXML xmlString

Dim Path As String

Path = fileSaveName

doc.Save Path

■tags

---

VBA XML 出力