# File lib/scrubyt/output/result_node.rb, line 29
    def to_libxml
      libxml_node = XML::Node.new(name)
      self.each { |child| libxml_node << child.to_libxml if child.has_content? }
      libxml_node << to_s if write_text
      libxml_node
    end