hi guys, I need some help in accessing DOM
suppose i've a dom object which logically looks like (contains 1000 tags)
<xml>
<keyword count=1>
<caption>one</caption>
<instance>section1</instance>
</keyword>
....
<keyword count=1000>
<caption>one thousand</caption>
<instance>section3</instance>
</keyword>
<section1> some value </section1>
<section3> some value </section3>
.......
</xml>
1) if i use the getelementbytagname to retrieve the value text within <keyword count=1000>, am i right to say that java will scan through the whole 1000 keyword tag? if so, can direct me to the documentation that mentions this?
2) for faster access, i'm thinking of converting it to a B or B+ tree. is there any code or api available to do that?
3) will converting it into a vector instead results in a faster access?
any kind soul pls advise
suppose i've a dom object which logically looks like (contains 1000 tags)
<xml>
<keyword count=1>
<caption>one</caption>
<instance>section1</instance>
</keyword>
....
<keyword count=1000>
<caption>one thousand</caption>
<instance>section3</instance>
</keyword>
<section1> some value </section1>
<section3> some value </section3>
.......
</xml>
1) if i use the getelementbytagname to retrieve the value text within <keyword count=1000>, am i right to say that java will scan through the whole 1000 keyword tag? if so, can direct me to the documentation that mentions this?
2) for faster access, i'm thinking of converting it to a B or B+ tree. is there any code or api available to do that?
3) will converting it into a vector instead results in a faster access?
any kind soul pls advise