rxml insert attribute and supporting function development