Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 769595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:21:44+00:00 2026-05-14T18:21:44+00:00

I have a 150 MB XML file which is used as DB in my

  • 0

I have a 150 MB XML file which is used as DB in my project. Currently I’m using XmlReader to read content from it. I want to know if it is better to use XmlReader or LINQ to XML for this scenario.

Note that I’m searching for an item in this XML and display search result, so it can take a long time or just a moment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:21:45+00:00Added an answer on May 14, 2026 at 6:21 pm

    If you want performance use XMLReader. It doesn’t read the whole file and build the DOM tree in memory. It instead, reads the file from disk and gives you back each node it finds on the way.

    With a quick google search I found a performance comparison of XmlReader, LINQ to XML and XmlDocument.Load.

    https://web.archive.org/web/20130517114458/http://www.nearinfinity.com/blogs/joe_ferner/performance_linq_to_sql_vs.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add about 150 element from a xml file to a select
I have a similar XML file which i required to search for its values
i have file called data_out.xml which contains this xml code: <?xml version=1.0 ?> -
I have a 150 MB (it can go even more sometimes) XML file. I
I have a XML that contains img tag <xml> <img src=/path/to/file.jpg orginalwidth=150 /> </xml>
I have a database with 150 million products, I would like index these using
I have a rather large file (150 million lines of 10 chars). I need
I have an array: string myArray={15,56,17-75,78,100-150,130} I want to filter myList by arrayElements .
I have a project consisting of a windows client (approx. 150 users), a webservice
I am using SAX Parser to parse the XML file over the network. While

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.