Problem Loading dhtmlXTreeObject in java

i am facing problem while using dhtmlxtree,
i am getting error in popup like
“Error type: LoadXML
Description: Incorrect XML”
“Error type: DataStructure
Description: XML refers to not existing parent”
i didn’t understand what i am missing
my jsp page is like:

and myconnector.jsp is like:
<%@page import=“java.sql.DriverManager”%>
<%@page import=“java.sql.Connection”%>
<%@page import=“com.dhtmlx.connector.ConnectorServlet”%>

<% new ConnectorServlet() { @Override protected void configure() { Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://localhost/sampleDB", "root", "root"); } catch (Throwable e) { e.printStackTrace(); } GridConnector c = new GridConnector(conn) ; c.render_table("grid50000", "item_id", "item_nm,item_cd"); } }; %>

part which generates xml must not contain any html code, just the connector initialization. ( it will work better if it will be created as a servlet, instead of jsp )