Has anybody tried this approach? create a package protected or inner subclass of DefaultJDOMFactory in SAXBuilder. Then in the factory, for example... private class NoCheckText extends Text { public void noCheck(String text) { value = text; } } public Text text(String text) { NoCheckText t = new NoCheckText(); t.noCheck(text); return (Text) t; }