The mssql-python driver sends and receives XML data as strings. All XML processing (XQuery, XML methods, schema validation) executes on the Microsoft SQL side. Use Python's xml.etree.ElementTree or ...