Hey all,
I'm fairly new to XML and I've run into a problem that I can't find and answer for on the web (I'm hope it's not impossible).
I have an XML file that looks something like:
I'm using VBSCRIPT with MSXML2.FreeThreadedDOMDocument.3.0
I need to select the folder with the id=1 with an XPATH query.
I've been using:
set Nodes = xmlDoc.selectNodes("//FOLDER"
and then looping through the Nodes looking for the correct ID, but it is giving me grief. It would be great if I could just select the correct folder with:
selectSingleNode(XPATH)
If someone could help I would appreciate it
I'm fairly new to XML and I've run into a problem that I can't find and answer for on the web (I'm hope it's not impossible).
I have an XML file that looks something like:
Code:
<Root id="1">
<FOLDER id="1">
<DOCUMENT id="1"/>
</FOLDER>
<FOLDER id="2">
<DOCUMENT id="2"/>
<DOCUMENT id="3"/>
</FOLDER>
<FOLDER id="3">
<DOCUMENT id="4"/>
</FOLDER>
</Root>
I'm using VBSCRIPT with MSXML2.FreeThreadedDOMDocument.3.0
I need to select the folder with the id=1 with an XPATH query.
I've been using:
set Nodes = xmlDoc.selectNodes("//FOLDER"
and then looping through the Nodes looking for the correct ID, but it is giving me grief. It would be great if I could just select the correct folder with:
selectSingleNode(XPATH)
If someone could help I would appreciate it