Solved

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

Posted on 2008-10-18
1
520 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
1 Comment
 
LVL 13

Accepted Solution

by:
sm394 earned 500 total points
ID: 22748845
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now