private CodedComment LoadComment(XmlNode inputNode, out string commentId)
{
var comment = new CodedComment
{
Comment = new EnumeratedRepresentation()
};
// Required fields. Do not proceed if they are missing
commentId = inputNode.GetXmlNodeValue("@A");
comment.Comment.Description = inputNode.GetXmlNodeValue("@B");
if (commentId == null || comment.Comment.Description == null)
return null;
if (!LoadScope(inputNode.GetXmlNodeValue("@C"), comment))
return null;
// Optional fields
LoadListValues(inputNode.SelectNodes("CCL"), comment);
_taskDocument.LoadLinkedIds(commentId, comment.Comment.Id);
return comment;
}