Solved

test for missing xml element

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

Accepted Solution

by:
jetbet earned 0 total points
ID: 34964722
Closed due to another issue being found
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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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