Solved some problems with XML elements. Added error message for remaining ones.