Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to check if a particular value exists in an XML document?

Posted on 2008-10-18
1
Medium Priority
?
527 Views
Last Modified: 2013-11-11
Hi,
I need to check if the value which is entered in a textbox exists in an XML document. My XML document is in the below format. Could you please tell me how can I find if the textbox value matches with one of the values enclosed in <RecordLocator></RecordLocator>. I am using C#.
thank you


<FindResByLocatorResponse>
        <TransactionID>TEST</TransactionID>
        <PNR>
                <RecordLocator>ABC</RecordLocator>
                <Type>0</Type>
                <Header>Regular</Header>
                <Passenger>
                        <LName>cuber</LName>
                        <FName>john</FName>
                        <Type>BCT</Type>
                <Passenger>

Open in new window

0
Comment
Question by:ipjyo
[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
 
LVL 13

Accepted Solution

by:
sm394 earned 2000 total points
ID: 22748845
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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