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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:09:40+00:00 2026-05-23T23:09:40+00:00

I am creating a price comparison script that will work with XML feeds, given

  • 0

I am creating a price comparison script that will work with XML feeds, given to me by many shops.
Those XMLs will have the same structure as below

    <product id="449135">
<name>MadBiker 600</name>
<link>MadBiker-600.html</link>
<price_with_vat>107.01</price_with_vat>
<category id="148807">For men</category>
<image width="280" height="280">p1.1.jpg</image>
<description>desc goes here</description>
     </product>

To handle it I have two options. Proceeding with an XML flat-file or save those data/values in a database. I have read that there are some low memory parsers like SAX/XMLReader.

What interests me more is to use a parser to a single file, instead of using a RDBMS.

What is your opinion on this?

Thank you

  • 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-05-23T23:09:40+00:00Added an answer on May 23, 2026 at 11:09 pm

    It depends mostly on the use you want to put the data to.

    I’m assuming that you will want to be able to sort and filter the data (e.g. “sort by price, desc”, or “filter by category=mens”). I’m also assuming you need some kind of “relevance” calculation and search feature.

    I’m also assuming that you will be constantly adding, removing and changing comparison data.

    Broadly speaking, those things are easier to do in SQL than by parsing an XML file – especially at scale.

    On the other hand, SQL makes it hard to represent different data attributes for different types of product (bicycles might need frame size, clothes might need colours). If this is part of your problem, XML makes the data storage easier – you define a schema/dtd and write documents that adhere to the schema.

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

Sidebar

Related Questions

I am creating a simple comparison script and I have some questions for the
I am having some problems creating a loop that could show the cheapest price.
I'm creating an import script using Nokogiri to parse an XML file and then
I'm creating a data store that will load the data from server. I'm wondering
I have a form where i enter min price and max price when creating
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a server-side socket will fail if I'm trying to use the same port
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
When creating a web application, and lets say you have a User object denoting
I'm creating some kind of auction application, and I have to decide what is

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.