replace <parent> with <term-id>