rxml development, mostly attribute functions, general common.h algorithms