Should I save my XML feed in a database or use an XML parser to handle it?

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

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.

1 for my usual answer: "It depends. " :-) – Rodney Gitzel Jul 21 at 0:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions