public XmlDocument GetXmlDocument(int i) { var xmlBody = GetString(i); if (string.IsNullOrEmpty(xmlBody)) { return(null); } var doc = new XmlDocument(); Db2DataReader.LoadString(doc, xmlBody, Encoding.Unicode); return(doc); }
public object GetValue(int i) { EnsureTypes(); switch (_column[i]) { case ColumnTypeEnum.Blob: return(Db2DataReader.GetBlob(this, i)); case ColumnTypeEnum.Clob: return(GetString(i)); case ColumnTypeEnum.Xml: return(GetXmlDocument(i)); default: return(_reader.GetValue(i)); } }