Solved

Classic ASP xml selectsinglenode using multiple attributes

Posted on 2014-02-11
2
1,173 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
2 Comments
 
LVL 52

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

830 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