I found the problem. xsi:schemaLocation=" adds a line break here.
so the schema location url starts down here, but should start on the line above, otherwise it will not validate.
It was easy to fix. Just moved the line up, but someone should probably fix this in the coding.