Index: SAXHandler.java =================================================================== RCS file: /home/cvspublic/jdom/src/java/org/jdom/input/SAXHandler.java,v retrieving revision 1.50 diff -r1.50 SAXHandler.java 201c201,248 < this.factory = new DefaultJDOMFactory(); --- > this.factory = > new DefaultJDOMFactory() { > private class NoCheckText extends Text { > public void noCheck(String text) { > value = text; > } > } > private class NoCheckAttribute extends Attribute { > public void setup(String name, String value, int type, Namespace namespace) { > this.name = name; > this.value = value; > setAttributeType(type); > setNamespace(namespace); > } > } > public Text text(String text) { > NoCheckText nochk = new NoCheckText(); > nochk.noCheck(text); > return (Text) nochk; > } > public Attribute attribute(String name, String value, Namespace namespace) { > NoCheckAttribute att = new NoCheckAttribute(); > att.setup(name, value, Attribute.UNDECLARED_ATTRIBUTE, namespace); > return (Attribute) att; > } > > > public Attribute attribute(String name, String value, > int type, Namespace namespace) { > NoCheckAttribute att = new NoCheckAttribute(); > att.setup(name, value, type, namespace); > return (Attribute) att; > } > public Attribute attribute(String name, String value) { > NoCheckAttribute att = new NoCheckAttribute(); > att.setup(name, value, Attribute.UNDECLARED_ATTRIBUTE, Namespace.NO_NAMESPACE); > return (Attribute) att; > } > > public Attribute attribute(String name, String value, int type) { > > NoCheckAttribute att = new NoCheckAttribute(); > att.setup(name, value, type, Namespace.NO_NAMESPACE); > return (Attribute) att; > } > > > };