View Issue Details

IDProjectCategoryView StatusLast Update
0003945Slicer4Core: MRMLpublic2015-01-26 15:13
ReportererikcAssigned Toalexy 
Status assignedResolutionopen 
Product VersionSlicer 4.4.0 
Target VersionFixed in Version 
Summary0003945: DICOM study description field with "&" in name (e.g. "CT Head&Neck") results in un-parseable scene.mrml file

The protocol description in a CT scanner can have a name like “CT Stroke Protocol Head&Neck”. This makes it into the DICOM metadata as:
(0008,1030) StudyDescription “CT Stroke Protocol Head&Neck”

When this series is loaded into Slicer, it results in a node named, for example,
"CT Stroke Protocol Head&Neck (20150115)_SubjectHierarchy”

When the scene is saved to disk, this name is incorporated into an xml token.

Importantly, when this scene.mrml file is subsequently imported in order to restore one's work, nothing appears to happen. It appears that all work has been lost, but only because the "&" in the token results in a failed mrml read. A message like the following appears in the log:

   Error parsing XML in stream at line 42, column 71, byte index 13903: not well-formed (invalid token)

If the "&" were replace by "AND", the .mrml read would proceed normally.

Additional Information

This is a relatively minor issue with easy work-around once one knows about it, but it can be upsetting for slicer novices who find it impossible to save and restore work.

Thanks for considering this bug/feature!

TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2015-01-26 15:13 erikc New Issue
2015-01-26 15:13 erikc Status new => assigned
2015-01-26 15:13 erikc Assigned To => alexy