How to parse XML using vba

前端 未结 8 1098
不思量自难忘°
不思量自难忘° 2020-11-22 08:46

I work in VBA, and want to parse a string eg



        
8条回答
  •  -上瘾入骨i
    2020-11-22 09:23

    This is a bit of a complicated question, but it seems like the most direct route would be to load the XML document or XML string via MSXML2.DOMDocument which will then allow you to access the XML nodes.

    You can find more on MSXML2.DOMDocument at the following sites:

    • Manipulating XML files with Excel VBA & Xpath
    • MSXML - http://msdn.microsoft.com/en-us/library/ms763742(VS.85).aspx
    • An Overview of MSXML 4.0

提交回复
热议问题