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
<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