--- experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 12:16:39 1.11 +++ experimental/server/XMLReader/XMLPacketMaker.java 2000/11/17 14:49:13 1.14 @@ -32,17 +32,14 @@ public class XMLPacketMaker extends HandlerBase { try { // Parse the input + InputSource inputSource = new InputSource(new StringReader(xml)); SAXParser saxParser = factory.newSAXParser(); - saxParser.parse(xml, new XMLPacketParser(packet)); + saxParser.parse(inputSource, new XMLPacketParser(packet)); - // Print out the entire contents of the packet's HashMap. - System.out.println("XMLPacket contents: -"); - packet.printAll(); - } 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(); return null; }