[xml] Refactoring

* extracted xml parsing method
* removed obsolete method