handle non-strings in pxml()