--- experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 14:45:56 1.13 +++ experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 14:49:13 1.14 @@ -32,28 +32,14 @@ public class XMLPacketMaker extends HandlerBase { try { // Parse the input - - xml.trim(); - - //debug stuff - byte[] temp = xml.getBytes(); - System.out.println("String length: "+temp.length+" "); - for (int i = 0 ; i < temp.length ; i++){ - System.out.print((char)temp[i]); - } - InputSource inputSource = new InputSource(new StringReader(xml)); SAXParser saxParser = factory.newSAXParser(); saxParser.parse(inputSource, new XMLPacketParser(packet)); } - //catch (IOException e){ - // System.out.println("IOException: "+e); - //} - catch (Throwable t) { + catch (Exception e) { System.out.println("XMLPacketMaker - I just received an XML packet that did not contain valid XML."); - //System.out.println(e); - t.printStackTrace(); + //t.printStackTrace(); return null; }