Add ability to query for posts in xml for json format for REST API usage