Solved

test for missing xml element

Posted on 2011-02-23
1
618 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

763 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