emit null value on empty tags
escape chars in xml