OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Action Script with XML
This page's ID:
11009
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi Friends, Thanks for so many replies. Actually I have to run this application on a pocket PC. Just Imagine there is an XML File containing First Names and Last Names of 60000 people. My original XML File loocked like :- <names> <detail first="vivek" last = "bajaj" /> <detail first="gaurav" last = "verma" /> ..... and so on 60000 records </names> now what I did was to break this original file into 26 files. first names starting with "a" in one file first names starting with "b" in other and so on upto "z" now this has reduced the size of database very much but still some files contain as much as 10000 records. the size of database is still growing. last night what i did was make an index tag in my each XML File. like :- <names> <index> <aa>100</aa> <ab>200</ab> <ac>300</ac> ... and so on upto az. </index> <detail first="vivek" last = "bajaj" /> <detail first="gaurav" last = "verma" /> <detail first="ashish" last = "gupta" /> </names> the value in aa and ab tags is their ending record count. now when I have to look for name "ashish" what I will do is i'll look for <as> tag in index tag and find its value. then I'll find the value of the tag which is previous to <as> that will be <ar>. Now I have the value from which I have to start the loop and at which i have to end the loop. I will not have to read the whole file. of 10000 records. Now where I am struck up is that in a couple of categories there are some 4000 records. for eg. the names starting with "ap" are 4000. Now when I have to run the loop for 4000 times, even the desktop pc shows low resources. hope this explains you the whole thing which I want to do. If any body got any solution or idea either post it or mail me at bajajvivek@hotmail.com. Thanks in advance Warm regards Vivek Bajaj
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »