I'm have an xml document populating a treeview that looks something like this:

Root
Filetypes
Filetype
TXT
Filetype
DAT
Filetype
ZIP


That's correct based on the xml document, but I want to display it like this:

Root
Filetype
TXT
DAT
ZIP

I'm not sure how to start on this. Do you know what I might do? Thanks