I am guessing you are not in the US? Are you talking about a lawyer for the child?
It is fairly common in the US for the children to be assigned a GAL (children's lawyer) to figure out what is in the best interests of the child. They interview both parents and the child alone to see what the child wants and what is going on...