public static ISOCodedCommentListValue ReadXML(XmlNode commentListValueNode)
        {
            ISOCodedCommentListValue value = new ISOCodedCommentListValue();

            value.CodedCommentListValueId         = commentListValueNode.GetXmlNodeValue("@A");
            value.CodedCommentListValueDesignator = commentListValueNode.GetXmlNodeValue("@B");
            return(value);
        }
        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);
        }
示例#3
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);
        }