Made some refactoring, add custom exception related to XML beautifulizer.