[os_xml] fix false positve duplicate attributes between different nodes