Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-18
1
Medium Priority
?
528 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 2000 total points
ID: 22748845
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

926 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