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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:37:29+00:00 2026-06-07T04:37:29+00:00

well i have a xml file that i use to store location names with

  • 0

well i have a xml file that i use to store location names with their addresses and their co ordinates. i need this data to help locating tht location on map. now the xml file is huge as it contains large amount of data so i want to reduce the searching time as i want to deploy the app on the mobile platforms- android and iphone. What i exactly do is, get users current location and then parse the xml one by one, get the co ordinates , compute distance between location and user, and then if distance less than radius, print on the screen. so any sorting or search algo can i implement here that will be on the users current location co ordinates???

  • 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-07T04:37:32+00:00Added an answer on June 7, 2026 at 4:37 am

    You have a constraint on using that XML file, OK. But do you also have a constraint on not using a database at all? Against keeping XML and a database both?

    If not, you can store coordinates and a key to immediately seek in the XML file into a database. This will give you fast searches, and slower (but minimal) reads from the XML file.

    If you also can not use a database, you may try and store coordinates and (again) keys to the XML file in another file, which will be far smaller, and inside which maybe you can organize some sort of tree-ordering or partitioning.

    Finally if you can use ONLY the one XML file, you will have to quickly parse the file and extract the relevant coordinate information. This you can probably do with a regexp, by routinely reading enough data that you always have a full record in your memory search buffer (you need an estimate of the maximum record size to do this). But it looks expensive as all hell. I’d strongly push for some other way to do this.

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

Sidebar

Related Questions

I have an XML file that is well formed and valid (matched with an
Good day I have a custom TextBox that has a IndicatorTextBox.ui.xml file as well
I have an XML file that I need to transform using an XSL script.
I have a situation where I need to store some data that just won't
I have a basic xml file that looks like this. <root> <item> <title><p>some title</p></title>
I have some non well-formed xml (HTML) data in JAVA, I used JAXP Dom,
Well i have a div tag that i show as a modal dialog this
We are in evaluating technologies that we'll use to store data that we gather
I have some xml that looks like this: <rootElement attribute=' > '/> This is
i have an xml file that contains lots of different nodes. some in particularly

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.