How should I get all the childs of chat_line and compare the contents of child with all others, if they matched get the contents of that node.