Solved

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

Posted on 2008-10-18
1
521 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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