Solved

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

Posted on 2008-10-18
1
519 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
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

12 Experts available now in Live!

Get 1:1 Help Now