Fixed XML string detection.