TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sudhakar reddy
NA
1
0
How to query an XML document in C# with some conditions
Aug 20 2012 1:41 PM
I have XML as given below:
<SIAINOTIFICATION>
<APPLICATIONNAME>ERP</APPLICATIONNAME>
<INTERFACENAME>Test-Interface</INTERFACENAME>
<LOCATION>Source</LOCATION>
<STATUSCONDITION>SUCCESS</STATUSCONDITION>
<INVOCATIONTYPE>ServiceInvoke</INVOCATIONTYPE>
<ROUTINGPARAM>123</ROUTINGPARAM>
</SIAINOTIFICATION>
<SIAINOTIFICATION>
<APPLICATIONNAME>ERP</APPLICATIONNAME>
<INTERFACENAME>Test-Interface</INTERFACENAME>
<LOCATION>Source</LOCATION>
<STATUSCONDITION>FAILURE</STATUSCONDITION>
<INVOCATIONTYPE>EMAIL</INVOCATIONTYPE>
<ROUTINGPARAM>123</ROUTINGPARAM>
</SIAINOTIFICATION>
<SIAINOTIFICATION>
<APPLICATIONNAME>ESS</APPLICATIONNAME>
<INTERFACENAME>Test-Interface</INTERFACENAME>
<LOCATION>Destination</LOCATION>
<STATUSCONDITION>SUCCESS</STATUSCONDITION>
<INVOCATIONTYPE>ServiceInvoke</INVOCATIONTYPE>
<ROUTINGPARAM>asd</ROUTINGPARAM>
</SIAINOTIFICATION>
<SIAINOTIFICATION>
<APPLICATIONNAME>ESS</APPLICATIONNAME>
<INTERFACENAME>Test-Interface</INTERFACENAME>
<LOCATION>Destination</LOCATION>
<STATUSCONDITION>FAILURE</STATUSCONDITION>
<INVOCATIONTYPE>ServiceInvoke</INVOCATIONTYPE>
<ROUTINGPARAM>asd</ROUTINGPARAM>
</SIAINOTIFICATION>
I have to query INVOCATIONTYPE from above XML based on LOCATION and STATUSCONDITION.
I.e.,
LOCATION = 'Source' and STATUSCONDITION = 'SUCCESS' what is INVOCATIONTYPE =?
LOCATION = 'Source' and STATUSCONDITION = 'FAILURE' what is INVOCATIONTYPE =?
LOCATION = 'Destination' and STATUSCONDITION = 'SUCCESS' what is INVOCATIONTYPE =?
LOCATION = 'Destination' and STATUSCONDITION = 'FAILURE' what is INVOCATIONTYPE =?
Any help would be highly appreciated!
Thanks
Reply
Answers (
1
)
Compare combobox items
In WPF toolkit Column series chart, can x-axis labels displayed align to tick marks?