I'm building a list of nodes I need to load from XML document using SelectNodes(xpath):
Set oNodeList = xmldoc.selectNodes("//Object/Property[@Name='Group' and Value='True']") and looping thru the nodes:
For Each curNode In oNodeList Set nAttr = curNode.parentNode.Attributes If (nAttr.getNamedItem("Seq").nodeValue = "abc") Then ' additional processing End If Next Additional processing involves looping thru child nodes of curNode. I was wondering if it's possible in build yet another nodeList using selectNodes which would select child nodes of curNode that meet particular criteria. The key point that xpath should start looking from the current node.
How can I do that?
selectNodesmethod only for aDocumentclass, but then in msdn.microsoft.com/en-us/library/aa212478(v=office.11).aspx there is aselectNodesmethod listed linked to the same documentation page. So, it's not posible to tell howselectNodesdefines the context node. You could try calling this method fromcurNode. Also, you are performing some filtering insideFor Eachthat looks like it could be done in the first XPath expression. Clarify that.