Solved

Classic ASP xml selectsinglenode using multiple attributes

Posted on 2014-02-11
2
1,111 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now