This forum has a wealth of examples, search is your friend
Here is one result for search for "get list of tag paths"