convert database into XML

Reply

Join Date: Jun 2009
Posts: 98
Reputation: sam023 is an unknown quantity at this point 
Solved Threads: 2
sam023 sam023 is offline Offline
Junior Poster in Training

convert database into XML

 
0
  #1
Sep 15th, 2009
i was wondering how i can convert my fetch data from database into XML..!!
actually i want to use idea on pagination..!!

when first time user search for data...!! a XML file will creating containing data from database..!! and further data will be listed from XML instead of database..!!!

can anyone help..?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 72
Reputation: smartness is an unknown quantity at this point 
Solved Threads: 10
smartness's Avatar
smartness smartness is offline Offline
Junior Poster in Training

Re: convert database into XML

 
0
  #2
Sep 15th, 2009
Yep, I can help...

I need to know the db fields & where/what you want to use! How you wan't it displayed etc...

are you trying to output rss feeds or what?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 98
Reputation: sam023 is an unknown quantity at this point 
Solved Threads: 2
sam023 sam023 is offline Offline
Junior Poster in Training

Re: convert database into XML

 
0
  #3
Sep 15th, 2009
thanks for response..!!

i just want to listing the data on a webpage..!!
i have a db field country_name and country_id..!! there are 150 records in a table..!!

So i try to use pagination at front end..!!! but every time i click on paging number... it fetch data from database..!! so instead of contacting database everytime.. i thought why not to load data into temporay XML file on page load and than fetch data from XML file instead of database..!! i think will make application more fast.!!!

what u say.??
Last edited by sam023; Sep 15th, 2009 at 9:16 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: convert database into XML

 
0
  #4
Sep 15th, 2009
I wouldn't do that. It would be slower than fetching a few records from a database.
Google is your friend.

Use [code] tags.

If you have found a solution to your problem, please mark the thread as SOLVED.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 954
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: convert database into XML

 
0
  #5
Sep 15th, 2009
Opening and reading files is slower that connecting to and reading from a db. Well, as far as I know.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 98
Reputation: sam023 is an unknown quantity at this point 
Solved Threads: 2
sam023 sam023 is offline Offline
Junior Poster in Training

Re: convert database into XML

 
0
  #6
Sep 16th, 2009
ohhh i thought using XML will make my application fast..!!! still i want to know how to convert db data into xml through php..!!

does anyone know this.?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 98
Reputation: sam023 is an unknown quantity at this point 
Solved Threads: 2
sam023 sam023 is offline Offline
Junior Poster in Training

Re: convert database into XML

 
0
  #7
Sep 16th, 2009
i think this concept is works for pagination.. where each time connection is made and than data is fetch..!!

data fetch once and store in xml file..!! than data is fetch from loaded xml file.. that will surely fast your application in during paging..!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 954
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: convert database into XML

 
0
  #8
Sep 16th, 2009
For small amounts of data, perhaps there would be negligible differences in speed, but as your data grows, a db would certainly be quicker - especially if correctly indexed.

The xml file, when opened will need to be read. The bigger the file, the more 'read time', regardless of how much of the actual info you want to extract.

I understand your point about making small temporary xml files, but I don't think it's worth all that extra hassle. Your db, if properly structured/indexed show be lightning fast.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC