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 213667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:18:02+00:00 2026-05-11T18:18:02+00:00

I have done XML parsing before but never on a massive scale. If I’m

  • 0

I have done XML parsing before but never on a massive scale.
If I’m working with many documents similar to this format:

<?xml version="1.0" ?>
<items comment="something...">
  <uid>6523453</uid>
  <uid>94593453</uid>
</items>

What is the fastest way to parse these documents?
1) XML DOM
2) XML Serialize – Rehydrate to a .NET Object
3) Some other method

UPDATE
I forgot to mention that there would be approx 8000 uid elements on average.

  • 1 1 Answer
  • 4 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-11T18:18:02+00:00Added an answer on May 11, 2026 at 6:18 pm

    Using XmlReader is definitely going to be the quickest method, though you’ll have to do all the parsing manually of course. It reads directly from the stream without caching anything, though it’s not too convenient to use compared to the DOM.

    Comparing the two you suggested: serialisation ought to be quicker than using the DOM since (I believe) it doesn’t cache the entire tree within memory – it also certainly has an easier to use interface, if you’re specifically aiming to perform serialisation.

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

Sidebar

Related Questions

I am parsing an XML document. I have done this thousands of times before,
I have done one program in android using xml parsing but there is an
I'm relatively new to Perl, writing some XML parsing scripts. I have done two
I have home work for parsing XML This is the xml : <?xml version=1.0
I haven't done too much XML parsing in the past, I have a page
I have a class that extends android.app.Dialog, the layout is done in an xml
I have done some looking and I found this: http://www.codeproject.com/Articles/14439/The-ScrollableListBox-Custom-Control-for-ASP-NET-2 but to me it
I have the following XML Parsing code in my application: public static XElement Parse(string
I am currently parsing XML, but im not quite sure how to parse the
I was parsing my xml in some other view controller's button click but now

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.