• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hashtable doubt  RSS feed

 
maha devan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am parsing an XML file using SAX parser
<Level1>
<Level2>
<First>
<second>
<Third>
<Fourth>
</Level2>
<Level2>
<First>
<second>
<Third>
<Fourth>
</Level2>
<Level1>

I am having 2 hastables First hastable holds {First/Second}

And Second Hastable holds {Third/Fourth}

If I need to Map First and Third can I use the [Index] of elements. Does hashtable hold all the elements in what sequence we are adding them

Thanks
Maha
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maps don't guarantee element order.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!