Details
Description
dom parser would crash without warning when parsing an ill-formed xml document.
one example is attached below (note that one of the "<" is missing )
<?xml version="1.0" encoding="iso-8859-1"?>
<SEND_MESSAGE>
<MESSAGE_TYPE>MOVE_STUDY/MESSAGE_TYPE>
<REQUEST_SEQUENCE>
<PREFETCH_REQUEST_ID>929838</PREFETCH_REQUEST_ID>
<ACCESSION_NUMBER>88888888</ACCESSION_NUMBER>
<PATIENT_ID>123456</PATIENT_ID>
<STUDY_INSTANCE_UID>1.2.840.113564.9.1.20030218.104212.20030716.103328.2.2002570
3</STUDY_INSTANCE_UID>
</REQUEST_SEQUENCE>
<REQUEST_SEQUENCE>
<PREFETCH_REQUEST_ID>929839</PREFETCH_REQUEST_ID>
<ACCESSION_NUMBER>88888889</ACCESSION_NUMBER>
<PATIENT_ID>123456</PATIENT_ID>
<STUDY_INSTANCE_UID>1.2.840.113564.9.1.20030218.104212.20030716.103328.2.2002570
4</STUDY_INSTANCE_UID>
</REQUEST_SEQUENCE>
<REPLY>
<MESSAGE_TYPE>MOVE_STUDY_REPLY</MESSAGE_TYPE>
</REPLY>
</SEND_MESSAGE>