--- experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 12:44:47 1.12 +++ experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 14:45:56 1.13 @@ -32,13 +32,24 @@ 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(xml, new XMLPacketParser(packet)); + saxParser.parse(inputSource, new XMLPacketParser(packet)); } - catch (IOException e){ - System.out.println("IOException: "+e); - } + //catch (IOException e){ + // System.out.println("IOException: "+e); + //} catch (Throwable t) { System.out.println("XMLPacketMaker - I just received an XML packet that did not contain valid XML."); //System.out.println(e);