?
Solved

Classic ASP xml selectsinglenode using multiple attributes

Posted on 2014-02-11
2
Medium Priority
?
1,248 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 2000 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

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses

770 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