Handle associated ids for non-root-node structures