class Hpricot::Elem
def inspect_tree(depth = 0)
def inspect_tree(depth = 0) %{#{" " * depth}} + name + "\n" + (children ? children.map { |x| x.inspect_tree(depth + 1) }.join : "") end
def inspect_tree(depth = 0) %{#{" " * depth}} + name + "\n" + (children ? children.map { |x| x.inspect_tree(depth + 1) }.join : "") end