# File lib/xml/dom2/element.rb, line 191 def dump(depth = 0) attr = '' @attr.each do |a| ## self.attributes do |a| attr += a.to_s + ", " end if @attr attr.chop! attr.chop! print ' ' * depth * 2 print "#{@name}(#{attr})\n" @children.each do |child| child.dump(depth + 1) end if @children end