Incorrect XML Error When Try to insert data

Hi,
i am new to Dhtmlx and i am using it with jsp.
i need to display data from the database into the grid, and also want to perform delete and add operations that should reflect on to database
my display is working perfectly but when i perform the delete operation it gives me a message incorrect xml?

hear is my code?

xml.jsp
<%
response.setContentType(“text/xml”);
out.println(“<?xml version=\"1.0\" encoding=\"UTF-8\"?>”);
%>
<%@ page import = “java.sql.*” %>
<%
// define variables from incoming Table values
String posStart = “”;
if (request.getParameter(“posStart”) != null){
posStart = request.getParameter(“posStart”);
}else{
posStart = “0”;
}

String count = “”;
if (request.getParameter(“count”) != null){
count = request.getParameter(“count”);
}else{
count = “100”;
}

// connect to database
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
String connectionURL = “jdbc:h2:~/test”;

Class.forName(“org.h2.Driver”).newInstance();
connection = DriverManager.getConnection(“jdbc:h2:~/test”, “sa”, “”);

// query to table
String sql = “SELECT * FROM test”;

String totalCount = “”;
if (posStart.equals(“0”)){
String sqlCount = “Select count(*) as cnt from (” + sql + “) as tbl”;
statement = connection.createStatement();
rs = statement.executeQuery(sqlCount);
rs.next();
totalCount = rs.getString(“cnt”);
rs.close();
} else {
totalCount = “”;
}

// add limits to query to get only rows necessary for output
sql += " LIMIT " + posStart + “,” + count;

// Execute the query
statement = connection.createStatement();
rs = statement.executeQuery(sql);

// output data in XML format to retrive from DB(test)
out.println(“”);
while (rs.next()) {
out.println(“”);
out.println(“”);
out.println(rs.getString(“ID”)); // value for product name
out.println(“”);
out.println(“”);
out.println(rs.getString(“NAME”)); // value for internal code
out.println(“”);
out.println(“”);
}
out.write(“”);
rs.close();
%>

and design file

Insert title here
<script src="codebase/dhtmlx.js" type="text/javascript"></script>

<style>
    /*these styles allow dhtmlxLayout to work in fullscreen mode in different browsers correctly*/
    html, body {
       width: 100%;
       height: 100%;
       margin: 0px;
       overflow: hidden;
       background-color:white;
    }
</style>
<div id="box" style="width:350px; height:160px; background-color:white;"></div>
<div id="box2" style="width:350px; height:100px; background-color:white;"></div>

could any one give me a sample code to perform CRUD operations in DHTMLXGRID in jsp…

You have initialized code, so each time when data updated in grid, xml.jsp will be called. But for now it only generates data and do nothing to save the updates.

You can
a) create a custom code for data saving in xml.jsp - which is require a lot of manual coding. You can check dataprocessor’s documentation for info about incoming request data.

or

b) you can use java connector for data xml generation and saving.
dhtmlx.com/x/download/regula … va_dvl.zip
docs.dhtmlx.com/doku.php?id=dhtm … orjava:toc

hi,
Thank u for the helpful information.
i have gone through the links you given but i found only php example i don’t have any knowledge in php only have a knowledge in java, javascript, etc i need a example in java so that i can easily understand the process.

 Thank u,

Actually both above links points to the java related code.
Full java package
dhtmlx.com/x/download/regula … r_java.zip
contains samples for both java server side and client side code.

You have samples XML return for conector ou datasource?

Sorry, but I do not understand your question. Please clarify.

HE MEAN TO SAY EXAMPLE PROGRAMS