Hi Ricky,
This is a problem you have to overcome on your own.
XML is in fact case-sensitive and the CURSORTOXML function will export the field names in lower case. So, be aware of it situations when case is important, like XPath expressions over the XML document, for example.