I have a Word .docx document which, when one looks at its XML has, among other things, the following nested tags
<w>
<w:r>
<w:t>Some text</w:t>
<w:t>whch needs</w:t>
<w:t>to be concatinated.</w:t>
</w:r>
</w>
I am able to write the script that could go to the <w:r> tags and then work with the <w:t> tags. Unfortunately, I need to start at the <w> tags. All the references to this type of thing stop at the grandchild nodes. What is the format for reaching the grandchild node of a specific node?
ie starting at
how do I say
<w>
<w:r>
<w:t>Some text</w:t>
<w:t>whch needs</w:t>
<w:t>to be concatinated.</w:t>
</w:r>
</w>
I am able to write the script that could go to the <w:r> tags and then work with the <w:t> tags. Unfortunately, I need to start at the <w> tags. All the references to this type of thing stop at the grandchild nodes. What is the format for reaching the grandchild node of a specific node?
ie starting at
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("document.xml")
for each x in xmlDoc.selectNodes("//w")
how do I say
for each <w:r>
for each <w:t>