Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Reading XElement from XML file

Reading XElement from XML file

Scheduled Pinned Locked Moved ASP.NET
xmlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.

    Thanks & Regards, Md. Abdul Aleem NIIT technologies

    C A 2 Replies Last reply
    0
    • I indian143

      Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.

      Thanks & Regards, Md. Abdul Aleem NIIT technologies

      C Offline
      C Offline
      Calin Tatar
      wrote on last edited by
      #2

      you may use XElement.Load() method. Have a look here[^] Calin

      1 Reply Last reply
      0
      • I indian143

        Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.

        Thanks & Regards, Md. Abdul Aleem NIIT technologies

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        suppose you have an xml file like this Abstract... Abstract... Use XElement.Load(@"yourfilepath"); After you read, you will get the element structure like this: Abstract... Abstract... You can also make use of XDocument xdoc = XDocument.Load("your path"); if you need comments and declarations ... Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions Create .NET Templates

        modified on Wednesday, March 4, 2009 6:30 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups