Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

constructing Btree

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
hi guys, i need some advice. suppose i've a xml file that looks like

<doc>
<keyword>
...
</keyword>
<section>
...
</section>
<section>
...
</section>
<section>
...
</section>
</doc>

instead of reading in as a DOM, I would like to read in as 2 Btree (one for keyword, one for section) so that access is faster.

my questions are
1) is it easier to read the file as DOM then convert to Btree?
2) or is it easier to construct the Btree as i read the file?
3) is there any sample code for constructing Btree?
4) is there any sample code for converting DOM to Btree?

thanx
 
From experience, there is no &quot;short cut&quot; to creating a BTree. To code one that works properly, it will be slightly involved depending on whether it is to be persistant or not. ------
KJR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top