app/models/odk/response_parser.rb
# We use the form item to determine the node type because ODK XML does not
# tell us what type a node is.
We use the form item to determine the node type because ODK XML does not
tell us what type a node is.
We use the form item to determine the node type because ODK XML does not tell us what type a node is .
def add_response_node(node, response_node)
      form_item = form_item(node.name)
      if form_item.class == QingGroup && form_item.repeatable?
        add_repeat_group(node, form_item, response_node)
      elsif form_item.class == QingGroup
        add_group(node, form_item, response_node)
      elsif form_item.multilevel?
        add_answer_set_member(node, form_item, response_node)
      else
        add_answer(node.content, form_item, response_node)
      end
    end
def add_response_node ( node , response_node ) form_item = form_item ( node . name ) if form_item . class == QingGroup && form_item . repeatable? add_repeat_group ( node , form_item , response_node ) elsif form_item . class == QingGroup add_group ( node , form_item , response_node ) elsif form_item . multilevel? add_answer_set_member ( node , form_item , response_node ) else add_answer ( node . content , form_item , response_node ) end end
We use the form item to determine the node type because ODK XML does not
tell us what type a node is.
We use the form item to determine the node type because ODK XML does not tell us what type a node is .
node
<not_specific>
response_node
<not_specific>