Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 02:54 AM
Registered User
 
Join Date: Oct 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read a XML element value

Hi all,
I have a xml file like this,
<RepositorySearch>
  <Fields>
    <ID>1</ID>
    <SearchName>search name 1</SearchName>
    <DocumentName>doc name 1</DocumentName>
    <DocumentDescription>f</DocumentDescription>
    <DocumentType></DocumentType>
  </Fields>
  <Fields>
    <ID>2</ID>
    <SearchName>search name 2</SearchName>
    <DocumentName>doc name 2</DocumentName>
    <DocumentDescription>descrip 2</DocumentDescription>
    <DocumentType></DocumentType>
  </Fields>
</RepositorySearch>

in this above, i have to check wether my input string is equal to any of the value of SearchName tag if they match ....I have to extract the below document name and documentDescription values....

urgent help plz guide me....

Thanks a million in advance..:((







Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
Read a XML element value chandler7272 C# 0 June 15th, 2006 02:55 AM
xml element values vakorde XSLT 3 May 2nd, 2006 04:36 AM
Converting XML to XML (making element mandatory) boondocksaint20 XSLT 8 April 28th, 2006 10:54 AM
XSLT read through XML to transform another XML dendenx2 XSLT 8 July 7th, 2005 08:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.