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

  • Home
  • SEARCH
  • 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 8855711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:11:55+00:00 2026-06-14T14:11:55+00:00

What do you suggest to use for parsing such as this XML file: <file>

  • 0

What do you suggest to use for parsing such as this XML file:

<file>
  <test1 a="true">
    <line1>aaa</line1>
    <line2>aaa</line2>
    <line3>aaa</line3>
    <line4>aaa</line4>
  </test1>
  <test2 a="true">
    <line1>aaa</line1>
    <line2>aaa</line2>
    <line3>aaa</line3>
    <line4>aaa</line4>
  </test2>
  <test3 a="false">
    <line1>aaa</line1>
    <line2>aaa</line2>
    <line3>aaa</line3>
    <line4>aaa</line4>
  </test3>
</file>
  • XmlReader
  • XmlTextReader
  • something another?

I’m looking for the fastest and shortest way. I tried with XmlReader but it needs to much extra variables to check which element is parasing currently.

Thanks in advance.
C.H.

–update 1–
The work which i want to do is assigning each element of tests to struct “test”

  • 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-14T14:11:57+00:00Added an answer on June 14, 2026 at 2:11 pm

    Look in to Linq to XML. I can’t speak to ‘fastest’, but it certainly makes my life easier when working with XML.

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

Sidebar

Related Questions

Hi im very new to webserices and xml parsing.I use http://www.mysamplecode.com/2011/11/android-parse-xml-file-example-using.html this link as
Premise: I am parsing a file that is quite nearly XML, but not quite.
Can anyone suggest a guideline on when to use SnapsToDevicePixels in WPF 4.0? Should
Could you suggest a syntax for the C language to use it in a
I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes
I wish to have a slider similar to they use. http://www.koovs.com/apple-ipod Can anyone suggest
this article suggests you can use Color c = Color.decode(FF0096); however this understandably throws
I'm trying to use the T4 templates in my MVC project. This screencast suggests
Please suggest or change some suitlable title for this question as i am not
I'd like to be able to use FFmpeg to convert a video file from

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.