package contrib; import org.jdom.Document; import org.jdom.Element; import org.jdom.input.DefaultJDOMFactory; /** * A JDOM Factory class for creating Elements and Document * used in parsing an xml document */ public class JDOMFactoryx extends DefaultJDOMFactory { /** * Constructor required by factory */ public JDOMFactoryx() { super(); } /** * Creates an element */ public Element element(String name) { return new Elementx(name); } /** * Create the Document object */ public Document document(Element e) { return new Documentx(e); } }