I have the below XML of DVDs with their titles and Ratings:
<Collection>
<DVD>
<Title>Wild Down Under</Title
<Rating>3 Stars</Rating>
</DVD>
<DVD>
<Title>Up</Title
<Rating>5 Stars</Rating>
</DVD>
</Collection>
And I have the below VBScript to iterate through and echo out the DVD titles, which works okay
Set xmlDoc = CreateObject( "Microsoft.XMLDOM" )
xmlDoc.Async = "False"
xmlDoc.Load( "dvdcoll.xml" )
strQuery = "/Collection/DVD/Title"
Set colNodes = xmlDoc.selectNodes( strQuery )
For Each objNode in colNodes
dvdTitle = objNode.text
WScript.Echo dvdTitle
Next
But what I want to do is somehow add the "Rating" Node into a string as well. Any idea how I can do that? It's important that Rating and Title are in separate strings.