Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML
<rss version="2.0">
  <channel>
    <title>Project Abc</title>
    <description>Description</description>
    <link>
    </link>
    <lastbuilddate>Thu Jan 17 2013 14:36:33 GMT-0500 (EST)</lastbuilddate>
    <pubdate>Thu Jan 17 2013 14:36:33 GMT-0500 (EST)</pubdate>
    <language>en</language>
    <item>
      <title>Processed abc | US</title>
      <description>
        <clientname>Capital</clientname>
        <title>Processed  | US </title>
        <firstname>Seif</firstname>
        <lastname>Zoi</lastname>
        <email>seifa@riya.com</email>
        <contact>657</contact>
        <consultationid>1292</consultationid>
        <rm>
          <name>Chahna</name>
          <email>cgo@glgroup.com</email>
          <phone>+447529 6981</phone>
          <fax>38</fax>
        </rm>
        <cms>
          <cm>
            <firstname>John</firstname>
            <lastname>Roberts</lastname>
            <email>jro@nasft.org</email>
            <Title>Presi</Title>
            <company>National Food Trade</company>
            <shortbio>John Roberts is President of the National Association for the Specialty Food Trade, Inc. NASFT facilates buyer-seller transactions for it&apos;s 2400 members (Importers, Producers [International &amp; Domeeton Hall University. Seeks only specialty food consumer producted related assignments.</shortbio>
            <consultationid>12946</consultationid>
            <meetingid>9174</meetingid>
            <personid>1330</personid>
            <councilmemberid>559</councilmemberid>
            <pqs>
            </pqs>
          </cm>
          <cm>
            <firstname>Joe</firstname>
            <lastname>Davis</lastname>
            <email>jds@fassfood.com</email>
            <Title>Ge Mger</Title>
            <company>FINE FOOD</company>
            <shortbio>Joe Davis is currently the General Manager, CEO, and owner at FFI, an importer and diSenior Brand Manager for McCormick, and Brand Manager for Quaker Oats.</shortbio>
            <consultationid>1272</consultationid>
            <meetingid>9135</meetingid>
            <personid>1354</personid>
            <councilmemberid>683</councilmemberid>
            <pqs>
            </pqs>
          </cm>
          <cm>
            <firstname>Ron</firstname>
            <lastname>Marshall</lastname>
            <email>ronl@outlook.com</email>
            <Title>Owner</Title>
            <company>Wildridganagement LLC</company>
            <shortbio>Ron Marshall is the owner of Wildridge Capital Management consulting firm, since July 2006.  Additionally, Mr. Marshall serves on the Board of Directors for Claire&apos wholesale distributicer to Pathmark Stores.</shortbio>
            <consultationid>1672</consultationid>
            <meetingid>91312</meetingid>
            <personid>1480</personid>
            <councilmemberid>1654</councilmemberid>
            <pqs>
            </pqs>
          </cm>
        </cms>
      </description>
    </item>
    <item>
	........
    </item>	
 

This is my xml file from this i want to fetch the output like this
 
--from all <item>
--<Title>
   ----from <description>
   ----<firstname>
     ----from <rm>
     ----<name>
         ----from all <cm>
         ----<firstname>
         ----<shortbio>

so the output should look like this
<title>
  <firstname>
     <name>
         <firstname>
         <shortbio>
 
so when clicked title all the detail should browser when i again clicked it should i hide
i m doing this in asp.net
so please provide me any solutions
Thanks in advanced
 
[edit]Code blocks added - OriginalGriff[/edit]
Posted 31-May-13 0:46am
Edited 31-May-13 1:07am
(no name)1.1M
v2
Comments
ryanb31 at 31-May-13 8:05am
   
Use either the XDocument or XmlDocument classes and load the file. Then do whatever you need to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 31 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100