> Hi Parixit,
> To get a exact responseXML for HttpXMLRequest you must send an XML
> from the server side. I mean without any errors. For an example, in
> theample code you have given doesn't have ending tag for XML tag (</
> xml>) . And make sure the generated string by queryDB(con) doesn't
> have symbols like "&". If you have it you have to use CDATA to pass
> those strings. Otherwise XML will fail.
> The code you have given is a serverside code. So it will be totally
> independent on what browser you are using. To further problems to be
> identified you must give us some client side codes like Javascript and
> HTML etc (if that problem still exists).
> Thank you.
> On Sep 28, 5:26 pm, Parixit <parix...@gmail.com> wrote:
> > Hi guys, i am getting responseText instead of responseXML from the
> > servlet eventhough i hv specified the content type as "text/xml" and
> > also using out.write() command. This is what i am getting in IE but in
> > Firefox 3 i get readystae code as undefined after 1 while in IE i get
> > all the codes right.
> > below is my servlet code for doGet
> > protected void doGet(HttpServletRequest request, HttpServletResponse
> > response)
> > throws ServletException, IOException {
> > response.setContentType("text/xml");
> > response.setHeader("Cache-Control", "no-cache");
> > PrintWriter out = response.getWriter();
> > try
> > {
> > //con = openConnection();
> > con = connectionPool.getConnection();
> > out.write("<?xml version=\"1.0\"?>");
> > out.write("<markers>");
> > out.write(queryDB(con));
> > out.write("</markers>");
> > out.close();
> > //out.close();
> > //closeConnection(con);
> > connectionPool.free(con);
> > }
> > catch (Exception e)
> > {
> > e.printStackTrace();
> > }
> > }- Hide quoted text -
> - Show quoted text -