Solved

Classic ASP xml selectsinglenode using multiple attributes

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Access application from Task Scheduler 6 48
XML SQL 8 25
TSQL query to generate xml 4 35
Syntax for query to update table 2 13
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…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

777 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