Excel VBA:使用单个标记解析XML文本<;br/>;分成两个单独的字符串(MSXML2)
我有一个如下所示的XML文件:Excel VBA:使用单个标记解析XML文本<;br/>;分成两个单独的字符串(MSXML2),excel,xml-parsing,msxml,vba,Excel,Xml Parsing,Msxml,Vba,我有一个如下所示的XML文件: <xml> <title>This is the title</title> <text>This is the first line<br/>This is the second line.</text> <title>This is another title</title> <text>This is anoth
<xml>
<title>This is the title</title>
<text>This is the first line<br/>This is the second line.</text>
<title>This is another title</title>
<text>This is another first line<br/>This is another second line.</text>
</xml>
这是标题
这是第一行
这是第二行。
这是另一个标题
这是另一条第一行
这是另一条第二行。
现在,我想使用VBA脚本和MSXML2来逐步创建这个XML文件
我可以使用selectNodes
或selectSingleNode
方法获取全文标记(两行)
但是如何将
标记的第一行和第二行放入两个不同的字符串中呢