refactored the xml builders build method.