Browse files

Bringing the repository in line with what I had on my hard drive.

  • Loading branch information...
1 parent a129b70 commit 1bdec253288e5673c5f91e5cce9858d3b12d68e6 jhunter committed Jan 23, 2003
Showing with 171 additions and 16 deletions.
  1. +7 −7 core/LICENSE.txt
  2. +23 −7 core/TODO.txt
  3. +137 −0 core/package/jdk-package-list.txt
  4. +4 −2 core/samples/
@@ -1,8 +1,8 @@
- $Id: LICENSE.txt,v 1.8 2002/01/19 10:15:17 jhunter Exp $
+ $Id: LICENSE.txt,v 1.9 2003/01/23 02:54:40 jhunter Exp $
- Copyright (C) 2000-2002 Brett McLaughlin & Jason Hunter.
+ Copyright (C) 2000-2002 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -19,11 +19,11 @@
3. The name "JDOM" must not be used to endorse or promote products
derived from this software without prior written permission. For
- written permission, please contact
+ written permission, please contact <license AT jdom DOT org>.
4. Products derived from this software may not be called "JDOM", nor
may "JDOM" appear in their name, without prior written permission
- from the JDOM Project Management (
+ from the JDOM Project Management <pm AT jdom DOT org>.
In addition, we request (but do not require) that you include in the
end-user documentation provided with the redistribution and/or in the
@@ -48,9 +48,9 @@
This software consists of voluntary contributions made by many
individuals on behalf of the JDOM Project and was originally
- created by Brett McLaughlin <> and
- Jason Hunter <>. For more information on the
- JDOM Project, please see <>.
+ created by Jason Hunter <jhunter AT jdom DOT org> and
+ Brett McLaughlin <brett AT jdom DOT org>. For more information on
+ the JDOM Project, please see <>.
@@ -2,6 +2,27 @@ Items that need to be done:
--- API CHANGES FOR 1.0 ---
+* Remove canAdd() and canRemove() from Filter.
+* Add DocType to the content list returned by Document so it can have a
+ location. Fix the outputters and builders to respect it. Keep the easy get
+ method however.
+* Look at interfaces for the core classes, Element with ConcreteElement being
+ our code. Base on the factory model. Allow no access between objects
+ except using the public API, to avoid the import node problem. Do the big
+ switchover using javax.xml.jdom as interfaces and default impl, use org.jdom
+ for the concretes. May not need to break existing code (sick and wrong).
+ - read-only?
+* Strategy pattern for XMLOutputter and others.
+ If need for override, make others final and leave the protected.
+* Make transforming easier, with a one-line method.
+* Should there be ValidityException and MalformedException subclasses of
+ JDOMException? Elharo has a proposal.
* Should CDATA be a flag on Text or a subclass of Text?
* Finalize the XPath class interface.
@@ -30,11 +51,6 @@ Items that need to be done:
be ignored.
(Laurent Bihanic wrote JH a private email about this on Dec 28 2001.)
-* Make sure that JDOMException is compatible with JDK 1.4 nested exceptions.
- E.g. should getNestedException find 1.4-type nested exceptions? Do both
- 1.4-type nested exceptions and JDOMException both try to print child
- stack traces, causing them to be printed twice?
* Figure out if there's a role for a Node interface. It sounds easy but all
attempts so far have hit obstacles. Amy Lewis talks about it here:
@@ -119,7 +135,7 @@ Items that need to be done:
and let the caller pass the exception through
* Populate jdom-test. Jools is leading this but Phil Nelson is currently
- doing a lot of work. Hong Zhang <Hong.Zhang@Sun.COM> is helping with the
+ doing a lot of work. Hong Zhang <Hong.Zhang AT Sun.COM> is helping with the
* Ensure JDOM is appropriately tweaked for subclassing, per the threads
@@ -210,7 +226,7 @@ Items that need to be done:
* Add a search for using Google with, imitating
-* Fix it so check-in messages include diffs. (
+* Fix it so check-in messages include diffs. (jools AT
* Add ElementLocator to contrib/ directory (from Alfred Lopez)
@@ -0,0 +1,137 @@
public static void main(String[] args) {
if ((args.length < 1) || (args.length > 3)) {
- "Usage: java samples.SAXBuilderTest " +
+ "Usage: java samples.SAXBuilderDemo " +
"[XML document filename] ([expandEntities] [SAX Driver Class])");
@@ -123,7 +123,9 @@ public static void main(String[] args) {
Document doc =;
XMLOutputter outputter = new XMLOutputter();
- //outputter.setTextTrim(true);
+ outputter.setTextTrim(true);
+ outputter.setIndent(" ");
+ outputter.setNewlines(true);
outputter.output(doc, System.out);
} catch (JDOMException e) {

0 comments on commit 1bdec25

Please sign in to comment.