Not working for me.
Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
May 14 2014 18:34:29
Copyright (c) Microsoft Corporation
Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
When trying an example from the post it gives:
Msg 217, Level 16, State 1, Procedure ParseXMLtoTable, Line 63
Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32).
PS. Nevermind. I just run the whole code at once and examples just became a part of the procedure itself.