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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:25:16+00:00 2026-06-03T06:25:16+00:00

I need to use XmlDocument or HAP to parse several files, what is the

  • 0

I need to use XmlDocument or HAP to parse several files, what is the fastest way to do it? I have an i7 processor, but the processor is using hardly 30% no matter how many threads I use. Each thread parses a different file.

  • 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-06-03T06:25:17+00:00Added an answer on June 3, 2026 at 6:25 am

    System.Xml.Linq.XElement.Parse() is faster than XmlDocument.LoadXml() for parsing XML strings, and XElement.Load() will parse directly from a file. You may also find LINQ to XML much easier to use.

    But if you want to work with XmlDocument, then you can use

    XmlDocument xml = new XmlDocument();
    xml.LoadXml(XElement.Load(someFileName).ToString(SaveOptions.DisableFormatting));
    

    And as others suggested, you probably won’t hit 100% CPU utilization since the i7 may parse much faster than the hard disk can send data.

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

Sidebar

Related Questions

Need to use own imaged markers instead built-in pins. I have several questions. 1.
I have an XML document that includes XPath expressions that I need to use
I need to use cv::FindContours() in a program and I have to know the
I want to use XPath (in Java) to parse XML files. However these XML
I have been parsing xml content using the xmlreader and cannot use the xml
I have an xml template document that I need to load into an XmlDocument.
So, I need use this event so I can navigate trought blog posts. I
I need to use a C library to access and older file format used
I need to use the $.ajax() call within jQuery to post a little bit
I need to use this formula to calculate the upper limit and lower limit

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.