dear all. i try to get data from database and then using sax api to generate xml file like: transformerHandler.setResult(new streamResult(response.getWriter())); transformerHandler.startElement(); . transformerHandler.characters(rs.getString("Mydata"),0,length); . transformerHandler.endElement();
and then if i try to access this servler/jsp it will show the xml file but usually it will show only half of the xml and show the wrong message about syntax wrong in this xml........ i try to write in Dom or SAX api but it will happened sometimes.........
best regards koji
author and deputy
Joined: Jul 13, 2001
Can you able to store the generated xml file into a a file instead of showing directly online ? there may be chance that your xml data may contain some non-unicode characters which makes your browser to showonly half. Try to store the xml file and see whether the xml is well formed. Does your program throws any exception ??