make XMLParser reusable solution