In the tree view, you can unfold the branches you want to keep, and fold the branches you want to exclude.
Then if you go to "File/Save As", you are able to only export the branches that were unfolded (options on the right of save as)
Let me know if that responds to your need.
Rgds,
Frederic