Sometimes we get following exception and stuck why this happens also changing schema file name and root node name solution will not build.
The namespace ‘Project.Schema.xyz’ already contains a definition for ‘abc’
Solution:
You need to change the Type Name of the Schema then It will build the solution without any issue. As below screenshot:

