XML input and category selection implemented