Solved

test for missing xml element

Posted on 2011-02-23
1
622 Views
Last Modified: 2013-11-11
I am trying to get all nodes from a tree in c# that have a element with the value of 'NZL' or where the element is missing

I have tried both of the following pieces of code but get an invalid input string error.

Can someone help?
XmlNodeList pools = OddsDoc.SelectNodes("Response/Pools/PoolOdds/States/State[State_Name = 'NZL'or (count(State_Name)= 0)]");

XmlNodeList pools = OddsDoc.SelectNodes("Response/Pools/PoolOdds/States/State[State_Name = 'NZL'or not(State_Name)]");

Open in new window

0
Comment
Question by:jetbet
[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
1 Comment
 

Accepted Solution

by:
jetbet earned 0 total points
ID: 34964722
Closed due to another issue being found
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

624 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