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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:59:31+00:00 2026-06-09T09:59:31+00:00

I am trying to write a xml parser for my game, since the size

  • 0

I am trying to write a xml parser for my game, since the size of the final build increase by 1+ mb when using the system.xml namespace. The parser class is a singleton and will be ready for access anytime in the game. Though the amount of data I am going to handle is not much, I am still worried about the performance (since it is a game, I cannot afford to sacrifice any performance).

Is there any way to effectively handle the parsing. Btw i am using c# and if a tag named <tag> is there, I am just breaking down the string into pieces searching for <tag> and </tag>. This will continue recursively until the whole string is broken down completely. And the result will be saved in a jagged list class I have created.

Are there any ways, I can improve my method or should I just go with System.XML name space.

Also another note: The xml data is from server not from a local 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-09T09:59:33+00:00Added an answer on June 9, 2026 at 9:59 am

    Some notes (this should be a comment, but is too long):

    1. I could not reproduce your problem. Using a console application, I added a reference to System.Xml, created an XmlDocument, used it, and compiled, and didn’t see any meaningful increase in size.
    2. System.Xml is part of the .Net base class library. Generally, you can count on it being on every machine that runs .Net (according the msdn, XmlDocument is available in XNA, for example, but not on the portable class library).
    3. If it is a part of your framework, make sure you did not set Copy Local = True on the reference. The default should be false, but if it is true, it will copy a 900 KB DLL to your target folder.
    4. No one can ever answer which is faster – The answer is extremely relative – to what types of XMLs (small? large?)? On what types of machines? What operations will your users do more with these XMLs? Only you can answer these questions, by profiling your code.
    5. Even if you discover XmlDocument is slow or too large, there are countless XML parsers for .Net – maybe one of them is good for you. (even .Net has XDocument, but it also requires System.Xml.dll, so no gain there)
    6. Generally, multiple string manipulations are slow. If the method you describe is constantly searching and splitting the sting, it sounds slow – I doubt you need to scan the string more than once to parse XML.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a generic XML to Core Data parser using libxml2. Since
I'm trying to write an xml file with utf-8 encoded data using ElementTree like
I'm trying to write an XML parser that takes an RSS feed & fetches
I am trying to write XML data using Stax where the content itself is
I've been trying to write a PHP script to parse an XML document using
I'm trying to write an xml parser but seem to be running into some
I'm trying to write an XML document using an XmlWriter and an XmlDocument .
I'm trying to create and write an XML in a Blackberry application using the
I'm trying to write a parser using flex and bison but I'm confused on
I am trying to write a xml file using xercesc::DOMWriter in c++. But I

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.