provide add_meta function to add metadata to new or existing nexml at specified level or id