@Override
    public String getValue(ResultSet rs, int startIndex) throws SQLException {
        SQLXML value = rs.getSQLXML(startIndex);
        return value != null ? value.getString() : null;
    }
{@code XMLAsStringType} maps String to SQLXML on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/XMLAsStringType.java