Yes, it works as well. The difference is that you XPath is finding the column names into the "xs:schema" element. Mine is getting the column names as they appear into the first "temp" element it finds into the document. In the end, I found your aproach better.
Glad to know it has worked!