# File lib/xml/dom/core.rb, line 3029 def initialize(name, *children) super(*children) raise "parameter error" if !name @name = name.freeze end
# File lib/xml/dom/core.rb, line 3095 def _checkNode(node) unless node.nodeType == ELEMENT_NODE || node.nodeType == PROCESSING_INSTRUCTION_NODE || node.nodeType == COMMENT_NODE || node.nodeType == TEXT_NODE || node.nodeType == CDATA_SECTION_NODE || node.nodeType == ENTITY_REFERENCE_NODE raise DOMException.new(DOMException::HIERARCHY_REQUEST_ERR) end end
# File lib/xml/dom/core.rb, line 3091 def cloneNode(deep = true) super(deep, @name) end
# File lib/xml/dom/core.rb, line 3074 def dump(depth = 0) print ' ' * depth * 2 print "&#{@name}{\n" @children.each do |child| child.dump(depth + 1) end if @children print ' ' * depth * 2 print "}\n" end
# File lib/xml/dom/core.rb, line 3055 def nodeName @name end
# File lib/xml/dom/core.rb, line 3044 def nodeType ENTITY_REFERENCE_NODE end
# File lib/xml/dom/core.rb, line 3065 def to_s "&#{@name};" end