Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
Questionconvert Java servlet to dll for .net 2005 Pin
c_becker16-Aug-07 2:50
c_becker16-Aug-07 2:50 
AnswerRe: convert Java servlet to dll for .net 2005 Pin
Pete O'Hanlon16-Aug-07 2:54
mvePete O'Hanlon16-Aug-07 2:54 
AnswerRe: convert Java servlet to dll for .net 2005 Pin
Luc Pattyn16-Aug-07 3:06
sitebuilderLuc Pattyn16-Aug-07 3:06 
GeneralRe: convert Java servlet to dll for .net 2005 Pin
Kevin McFarlane16-Aug-07 12:25
Kevin McFarlane16-Aug-07 12:25 
GeneralRe: convert Java servlet to dll for .net 2005 Pin
Luc Pattyn16-Aug-07 13:09
sitebuilderLuc Pattyn16-Aug-07 13:09 
QuestionPInvoke on a COM / OLE Object Pin
Tristan Rhodes16-Aug-07 2:45
Tristan Rhodes16-Aug-07 2:45 
AnswerRe: PInvoke on a COM / OLE Object Pin
Giorgi Dalakishvili16-Aug-07 3:14
mentorGiorgi Dalakishvili16-Aug-07 3:14 
QuestionHow to select xmls nodes based on multiple filter criteria Pin
Harkamal Singh16-Aug-07 1:42
Harkamal Singh16-Aug-07 1:42 
Sample XML
----------
<Licenses>
<License SystemIdentifier="1-E44EA87E32A5" HostName="host1" IPAddress="192.168.1.1" ProductName="Installer" />
<License SystemIdentifier="1-E44EA87E32A5" HostName="host1" IPAddress="192.168.1.2" ProductName="MSI Packager" />
<License SystemIdentifier="1-E44EA87E32A5" HostName="host1" IPAddress="192.168.1.3" ProductName="Custom" />
</Licenses>

C# Code (FAILS)
---------------
XmlNodeList nodes = xml.SelectNodes(@"/Licenses/License[@HostName='host1'] and [@IPAddress='192.168.1.2' ]");

XmlNode node = xml.SelectSinglenode(@"/Licenses/License[@HostName='SIN520APP190'] and [@IPAddress='192.168.1.2' ]");

Basically I need to know how to select node(s) by applying filters on 2 or more attributes. It works with single attribute though.

Thanks.
h
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
pmarfleet16-Aug-07 2:09
pmarfleet16-Aug-07 2:09 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
Rocky#16-Aug-07 2:20
Rocky#16-Aug-07 2:20 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
Harkamal Singh16-Aug-07 2:49
Harkamal Singh16-Aug-07 2:49 
AnswerRe: How to select xmls nodes based on multiple filter criteria Pin
sathish s16-Aug-07 2:26
sathish s16-Aug-07 2:26 
QuestionHelp regarding datagridviewcheckboxcolumn Pin
anu8116-Aug-07 1:37
anu8116-Aug-07 1:37 
AnswerRe: Help regarding datagridviewcheckboxcolumn Pin
Rocky#16-Aug-07 2:26
Rocky#16-Aug-07 2:26 
QuestionDeclaring Global variables in .cs file Pin
JamesBarnes16-Aug-07 1:25
JamesBarnes16-Aug-07 1:25 
AnswerRe: Declaring Global variables in .cs file Pin
Rocky#16-Aug-07 1:28
Rocky#16-Aug-07 1:28 
AnswerRe: Declaring Global variables in .cs file Pin
Bekjong16-Aug-07 1:29
Bekjong16-Aug-07 1:29 
JokeRe: Declaring Global variables in .cs file Pin
JamesBarnes16-Aug-07 1:33
JamesBarnes16-Aug-07 1:33 
GeneralForgot to mention ... Pin
JamesBarnes16-Aug-07 1:35
JamesBarnes16-Aug-07 1:35 
GeneralRe: Forgot to mention ... Pin
Giorgi Dalakishvili16-Aug-07 1:38
mentorGiorgi Dalakishvili16-Aug-07 1:38 
GeneralRe: Forgot to mention ... Pin
J4amieC16-Aug-07 3:27
J4amieC16-Aug-07 3:27 
GeneralAdditional thoughts Pin
Urs Enzler16-Aug-07 3:39
Urs Enzler16-Aug-07 3:39 
AnswerRe: Declaring Global variables in .cs file Pin
User 167325216-Aug-07 14:36
User 167325216-Aug-07 14:36 
QuestionRetrieving the installed softwares in WMI [modified] Pin
toink toink16-Aug-07 1:02
toink toink16-Aug-07 1:02 
AnswerRe: Retrieving the installed softwares in WMI Pin
Harkamal Singh16-Aug-07 1:53
Harkamal Singh16-Aug-07 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.