XML schema collections script out using SQL Server types, even if the schema collection was created using native XML types. This wasn't an issue before selective XML indexes were introduced which do not support schema collections with SQL Server types. That means while I can create the schema collection using native types, it becomes impossible to script out the schema collection and run the resulting script such that you can create the selective XML index which was there before.
Operating System Language
Steps to Reproduce