Refatorar xml converter