# File lib/xml/dom/core.rb, line 2671 def initialize(text = nil) super(text) raise "parameter error" if !text end
# File lib/xml/dom/core.rb, line 2719 def _getMyLocation(parent) index = 1 parent.childNodes do |child| if child == self return "child(#{index},#cdata)" end if child.nodeType == CDATA_SECTION_NODE index += 1 end end nil end
# File lib/xml/dom2/xpath.rb, line 352 def _getMyLocationInXPath(parent) n = parent.childNodes.to_a.select { |i| i.nodeType == TEXT_NODE or i.nodeType == CDATA_SECTION_NODE }.index(self) "text()[#{n + 1}]" end
# File lib/xml/dom/core.rb, line 2714 def dump(depth = 0) print ' ' * depth * 2 print "<![CDATA[#{@value.inspect}]]>\n" end
# File lib/xml/dom/core.rb, line 2696 def nodeName "#cdata-section" end
# File lib/xml/dom/core.rb, line 2685 def nodeType CDATA_SECTION_NODE end
# File lib/xml/dom/core.rb, line 2705 def to_s "<![CDATA[#{@value}]]>" end