Updated the XMLDetector regex to support both single and double quotes in the XML version attribute, improving compatibility with different XML declaration styles. Now supports: <?xml version="1.0"?> <?xml version='1.0'?>