Sample XML
<catalog>
<book id="Adventure" Type="Hardcover">
<other>
<author name="Jones" id="Adventure">
</author>
</other>
</book>
</catalog>
Do these statements make sense? I need a sanity check to see what's going on with all these variables/quotes. I tried to use one of the XPath test sites, but it keeps giving me an error and I'm not sure why.
bookVar = "Adventure"
bookStyle = "Hardcover"
bookAuthor = "Jon"
Set my_location = XMLFile.SelectNodes("/catalog/book[@id=""" & bookVar & """]/author/other/*[contains(name(),""" & bookAuthor & """]")
Set my_location2 = XMLFile.SelectNodes("/catalog/book[@id=""" & bookVar & """ and Type=""" & bookStyle &"""]
Set my_location3 = XMLFile.SelectNodes("/catalog/book[@id=""" & bookVar & """]/other/author/*[contains(name(),""" & bookAuthor & """]")