Zend certified PHP/Magento developer

Batch rename in DOS

I have over 1000 files with the following format

WMS_002248557A931EDE81AEE9DEF8AB0CCD.xml.20230607T141028.383-1443092915
WMS_0022485689451EDE81AEFD441B115F0C.xml.20230607T141430.753-1443334398

I want to keep ONLY up to XML and stripped the rest

how can I do this in DOS Command prompt?

I have tried the following command

ren *.xml.* *.xml

and the result is close but not exactly how I want it

WMS_002248557A931EDE81AEE9DEF8AB0CCD.xml.20230607T141028.xml
WMS_0022485689451EDE81AEFD441B115F0C.xml.20230607T141430.xml