# File lib/xml/dom/core.rb, line 2809 def dump(depth = 0) print ' ' * depth * 2 print "<!DOCTYPE #{@name} #{@value} [\n" @children.each do |child| print ' ' * (depth + 1) * 2 if child.nodeType == PROCESSING_INSTRUCTION_NODE || child.nodeType == COMMENT_NODE child.dump else print child.nodeValue, "\n" end end if @children print ' ' * depth * 2 print "]>\n" end