public string GetXMLResult() { if (xmlResult == null) { try { if (!dr.IsDBNull(0)) { if (this.HasRows) { StringBuilder output = new StringBuilder(""); if (this.RowsRead > 0) { output.Append(this.GetString(0)); } while (this.Read()) { output.Append(this.GetString(0)); } xmlResult = output.ToString(); } } else { xmlResult = ""; } } catch (Exception err) { _lastSqlError = err; xmlResult = ""; } } return xmlResult; }