Lines Matching refs:node
38 def write_element(node, output)
40 output << "<#{node.expanded_name}"
42 node.attributes.each_attribute do |attr|
45 end unless node.attributes.empty?
47 if node.children.empty?
59 if node.children.inject(true) {|s,c| s & c.kind_of?(Text)}
63 node.children.each { |child| write( child, string ) }
74 node.children.each { |child|
82 output << "</#{node.expanded_name}"
87 def write_text( node, output )
88 s = node.to_s()
96 def write_comment( node, output)
101 def write_cdata( node, output)
106 def write_document( node, output )
112 node.children.each { |child|
113 next if child == node.children[-1] and child.instance_of?(Text)
114 unless child == node.children[0] or child.instance_of?(Text) or
115 (child == node.children[1] and !node.children[0].writethis)