Solved

Classic ASP xml selectsinglenode using multiple attributes

Posted on 2014-02-11
2
1,214 Views
Last Modified: 2014-02-11
set mynode = parnode.selectsinglenode("//Detail[@myattr='value'])
The above works, how can I do the following
set mynode = parnode.selectsinglenode("//Detail[@myattrA='value'] && [@myattrB='value']   )

in other words use multiple attributes?

And how can I do the following with multiple values in one attribute
[@myattr='valueA,valueB']

all using vbscript in classic asp.
0
Comment
Question by:KeithMcElroy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39851188
I am not the best with this but I think just one set of brackets.

set mynode = parnode.selectsinglenode("//Detail[@myattrA='value'  && @myattrB='value']   )
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question