PDA

View Full Version : Sleeper: Alternative for GetElementsByTagName for filling a xmlnodelist



menno
12-19-2015, 01:11 PM
I am looking for an alternative for filling a xmlnodelist. Because the function GetElementsByTagName is only working with one “search condition”. 
I would like to add to this nodelist the tags “A” and tags B both in one nodelist.
The code below is not correct because its only working for one tagname. Anyone any idea? Maybe with a loop function?

Src = filename
xmldoc.async = False
xmldoc.Load (src)
Set oNodeList = xmldoc.getElementsByTagName("A")

Bob Phillips
12-19-2015, 05:14 PM
Cross-posted at StackOverflow http://stackoverflow.com/questions/34374644/alternative-for-getelementsbytagname-for-filling-a-xmlnodelist