Weighted Expressions and DFS Tree Automata