nsxml coverters subfunctions