If this is not syntactically correct, this is not XML.
XML is very strict about this.
If you cannot get the sending application to send the correct XML, just let them know that any subsequent process sees that it will fail, whether it be your or another application in the future.
, Stream, . <, , . >, ( ). - , NUL ^ Z, XML . ( , < , - >).