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!

accessing DOM

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top