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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:16:27+00:00 2026-05-11T11:16:27+00:00

I’m writing a GIS client tool in C# to retrieve features in a GML-based

  • 0

I’m writing a GIS client tool in C# to retrieve ‘features’ in a GML-based XML schema (sample below) from a server. Extracts are limited to 100,000 features.

I guestimate that the largest extract.xml might get up around 150 megabytes, so obviously DOM parsers are out I’ve been trying to decide between XmlSerializer and XSD.EXE generated bindings –OR– XmlReader and a hand-crafted object graph.

Or maybe there’s a better way which I haven’t considered yet? Like XLINQ, or ????

Please can anybody guide me? Especially with regards to the memory efficiency of any given approach. If not I’ll have to ‘prototype’ both solutions and profile them side-by-side.

I’m a bit of a raw prawn in .NET. Any guidance would be greatly appreciated.

Thanking you. Keith.


Sample XML – upto 100,000 of them, of upto 234,600 coords per feature.

<feature featId='27168306' fType='vegetation' fTypeId='1129' fClass='vegetation' gType='Polygon' ID='0' cLockNr='51598' metadataId='51599' mdFileId='NRM/TIS/VEGETATION/9543_22_v3' dataScale='25000'>   <MultiGeometry>     <geometryMember>       <Polygon>         <outerBoundaryIs>           <LinearRing>             <coordinates>153.505004,-27.42196 153.505044,-27.422015 153.503992 .... 172 coordinates omitted to save space ... 153.505004,-27.42196</coordinates>           </LinearRing>         </outerBoundaryIs>       </Polygon>     </geometryMember>   </MultiGeometry> </feature> 
  • 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. 2026-05-11T11:16:28+00:00Added an answer on May 11, 2026 at 11:16 am

    Use XmlReader to parse large XML documents. XmlReader provides fast, forward-only, non-cached access to XML data. (Forward-only means you can read the XML file from beginning to end but cannot move backwards in the file.) XmlReader uses small amounts of memory, and is equivalent to using a simple SAX reader.

        using (XmlReader myReader = XmlReader.Create(@'c:\data\coords.xml'))     {         while (myReader.Read())         {            // Process each node (myReader.Value) here            // ...         }     } 

    You can use XmlReader to process files that are up to 2 gigabytes (GB) in size.

    Ref: How to read XML from a file by using Visual C#

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

Sidebar

Ask A Question

Stats

  • Questions 93k
  • Answers 93k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You're going to have to play with your CSS. The… May 11, 2026 at 6:36 pm
  • Editorial Team
    Editorial Team added an answer class A { static const int masks[]; }; const int… May 11, 2026 at 6:36 pm
  • Editorial Team
    Editorial Team added an answer Here are the exact steps we took to fix this… May 11, 2026 at 6:36 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.