lib/opener/opinion_detector_basic/kaf/document.rb
##
# Creates a new node in the KAF file.
#
Creates a new node in the KAF file.
Creates a new node in the KAF file .
def new_node tag, parent
          if parent.is_a?(String)
            parent_node = document.at_xpath(parent)
          else
            parent_node = parent
          end
          node = Nokogiri::XML::Element.new(tag, document)
          parent_node.add_child node
          node
        end
def new_node tag , parent if parent . is_a? ( String ) parent_node = document . at_xpath ( parent ) else parent_node = parent end node = Nokogiri :: XML :: Element . new ( tag , document ) parent_node . add_child node node end
Creates a new node in the KAF file.
Creates a new node in the KAF file .
tag
<not_specific>
parent
<not_specific>