searches for child 'text'
number of children
log name for each value
log reference