use genereric xml/json processing functions