SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to read XML documents

    Hi,

    I have a requirement to read XML document with optimize code.

    In such a way that I need to get the nested XML document values in to the c# generic list for further queries.

    Help me on this, Thanks in advance...

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kasunt View Post
    Hi,

    I have a requirement to read XML document with optimize code.

    In such a way that I need to get the nested XML document values in to the c# generic list for further queries.

    Help me on this, Thanks in advance...
    Try LINQ to XML, that lets you query the XML DOM. If you've got a fixed data shape, then xml deserialization is pretty fun and easy.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •