Query for updating a node in a hierarchial tree structure