Now allows insertion of elements and attributes relative to oter elements and attributes