public static IEnumerable <ISOCodedCommentListValue> ReadXML(XmlNodeList listValueNodes)
        {
            List <ISOCodedCommentListValue> values = new List <ISOCodedCommentListValue>();

            foreach (XmlNode valueNode in listValueNodes)
            {
                values.Add(ISOCodedCommentListValue.ReadXML(valueNode));
            }
            return(values);
        }
Example #2
0
        public static ISOCodedComment ReadXML(XmlNode commentNode)
        {
            ISOCodedComment comment = new ISOCodedComment();

            comment.CodedCommentID         = commentNode.GetXmlNodeValue("@A");
            comment.CodedCommentDesignator = commentNode.GetXmlNodeValue("@B");
            comment.CodedCommentScopeInt   = commentNode.GetXmlNodeValueAsInt("@C");
            comment.CodedCommentGroupIdRef = commentNode.GetXmlNodeValue("@D");

            XmlNodeList cclNodes = commentNode.SelectNodes("CCL");

            if (cclNodes != null)
            {
                comment.CodedCommentListValues.AddRange(ISOCodedCommentListValue.ReadXML(cclNodes));
            }

            return(comment);
        }