How can I retrieve content for a tree view?