Permalink
Browse files

Noting what's new for this release. Updating copyright headers.

-jh-
  • Loading branch information...
1 parent 61ac184 commit a652c0ea647add26cfd563fb7c9659fde9f7d829 jhunter committed Nov 10, 2007
Showing with 379 additions and 245 deletions.
  1. +63 −1 core/CHANGES.txt
  2. +7 −0 core/README.txt
  3. +1 −1 core/TODO.txt
  4. +11 −3 core/build.xml
  5. +3 −2 core/package/META-INF/info.xml
  6. +4 −4 core/src/java/org/jdom/Attribute.java
  7. +4 −4 core/src/java/org/jdom/AttributeList.java
  8. +4 −4 core/src/java/org/jdom/CDATA.java
  9. +4 −4 core/src/java/org/jdom/Comment.java
  10. +3 −3 core/src/java/org/jdom/Content.java
  11. +4 −4 core/src/java/org/jdom/ContentList.java
  12. +4 −4 core/src/java/org/jdom/DataConversionException.java
  13. +4 −4 core/src/java/org/jdom/DefaultJDOMFactory.java
  14. +4 −4 core/src/java/org/jdom/DescendantIterator.java
  15. +4 −4 core/src/java/org/jdom/DocType.java
  16. +4 −4 core/src/java/org/jdom/Document.java
  17. +4 −4 core/src/java/org/jdom/Element.java
  18. +4 −4 core/src/java/org/jdom/EntityRef.java
  19. +4 −4 core/src/java/org/jdom/FilterIterator.java
  20. +4 −4 core/src/java/org/jdom/IllegalAddException.java
  21. +4 −4 core/src/java/org/jdom/IllegalDataException.java
  22. +4 −4 core/src/java/org/jdom/IllegalNameException.java
  23. +4 −4 core/src/java/org/jdom/IllegalTargetException.java
  24. +4 −4 core/src/java/org/jdom/JDOMException.java
  25. +3 −3 core/src/java/org/jdom/JDOMFactory.java
  26. +4 −4 core/src/java/org/jdom/Namespace.java
  27. +4 −4 core/src/java/org/jdom/NamespaceKey.java
  28. +3 −3 core/src/java/org/jdom/Parent.java
  29. +4 −4 core/src/java/org/jdom/ProcessingInstruction.java
  30. +4 −4 core/src/java/org/jdom/Text.java
  31. +56 −0 core/src/java/org/jdom/UncheckedJDOMFactory.java
  32. +4 −4 core/src/java/org/jdom/Verifier.java
  33. +4 −4 core/src/java/org/jdom/adapters/AbstractDOMAdapter.java
  34. +4 −4 core/src/java/org/jdom/adapters/CrimsonDOMAdapter.java
  35. +3 −3 core/src/java/org/jdom/adapters/DOMAdapter.java
  36. +4 −4 core/src/java/org/jdom/adapters/JAXPDOMAdapter.java
  37. +4 −4 core/src/java/org/jdom/adapters/OracleV1DOMAdapter.java
  38. +4 −4 core/src/java/org/jdom/adapters/OracleV2DOMAdapter.java
  39. +4 −4 core/src/java/org/jdom/adapters/XML4JDOMAdapter.java
  40. +4 −4 core/src/java/org/jdom/adapters/XercesDOMAdapter.java
  41. +4 −4 core/src/java/org/jdom/filter/AbstractFilter.java
  42. +4 −4 core/src/java/org/jdom/filter/AndFilter.java
  43. +4 −4 core/src/java/org/jdom/filter/ContentFilter.java
  44. +4 −4 core/src/java/org/jdom/filter/ElementFilter.java
  45. +3 −3 core/src/java/org/jdom/filter/Filter.java
  46. +4 −4 core/src/java/org/jdom/filter/NegateFilter.java
  47. +4 −4 core/src/java/org/jdom/filter/OrFilter.java
  48. +4 −4 core/src/java/org/jdom/input/BuilderErrorHandler.java
  49. +4 −4 core/src/java/org/jdom/input/DOMBuilder.java
  50. +4 −4 core/src/java/org/jdom/input/JAXPParserFactory.java
  51. +4 −4 core/src/java/org/jdom/input/JDOMParseException.java
  52. +4 −4 core/src/java/org/jdom/input/SAXBuilder.java
  53. +4 −4 core/src/java/org/jdom/input/SAXHandler.java
  54. +4 −4 core/src/java/org/jdom/input/TextBuffer.java
  55. +4 −4 core/src/java/org/jdom/output/DOMOutputter.java
  56. +3 −3 core/src/java/org/jdom/output/EscapeStrategy.java
  57. +4 −4 core/src/java/org/jdom/output/Format.java
  58. +4 −4 core/src/java/org/jdom/output/JDOMLocator.java
  59. +4 −4 core/src/java/org/jdom/output/NamespaceStack.java
  60. +4 −4 core/src/java/org/jdom/output/SAXOutputter.java
  61. +4 −4 core/src/java/org/jdom/output/XMLOutputter.java
  62. +4 −4 core/src/java/org/jdom/transform/JDOMResult.java
  63. +4 −4 core/src/java/org/jdom/transform/JDOMSource.java
  64. +4 −4 core/src/java/org/jdom/transform/XSLTransformException.java
  65. +4 −4 core/src/java/org/jdom/transform/XSLTransformer.java
  66. +4 −4 core/src/java/org/jdom/xpath/JaxenXPath.java
  67. +4 −4 core/src/java/org/jdom/xpath/XPath.java
View
@@ -1,4 +1,66 @@
-* * * * * * 1.0 (future tag: jdom_1_0) from Beta10 * * * * * *
+* * * * * * JDOM 1.1 (tag: jdom_1_1) from JDOM 1.0 * * * * * *
+
+Added an additional constructor to JDOMSource with an EntityResolver which is
+passed to the internal DocumentReader allowing the SAXOutputter to properly
+resolve DTDs.
+
+Added a forceNamespaceAware property to DOMOutputter which specifies you want
+a DOM constructed with namespaces even if the source JDOM document has no
+namespaces.
+
+Added support for attribute "INF" and "-INF" values, to indicate positive and
+negative infinity, as XML Schema allows.
+
+Moved isXMLWhitespace() method from private in XMLOutputter to public in
+Verifier.
+
+Clarified XMLOutputter behavior with newlines and indents:
+ setIndent(" ") means newlines and " " indents
+ setIndent("") means newlines and "" indents
+ setIndent(null) means no newlines and no indents
+
+Added set/getIgnoringBoundaryWhitespace() methods and features to SAXBuilder
+and SAXHandler.
+
+Added a string constant for the JDOM_OBJECT_MODEL_URI used by JAXP 1.3. It
+deserves being part of the public API.
+
+Fixed bug in SAXOutputter where default namespaces would be declared as
+xmlns:="" with a spurious colon.
+
+Fixed bug when using attributes without a namespace and outputting to a
+JDOMResult.
+
+Removing check that a comment not start with a hyphen. A careful reading of
+production 15 in the XML 1.0 spec indicates leading hyphens are in fact
+allowed.
+
+Fixed bug where outputFragment() on SAXOutputter could cause a
+NullPointerException because the locator would be null during the call.
+
+Fixed bug where serializing ElementFilter causes a NullPointerException if the
+filter has no assigned namespace
+
+Fixed some subtle bad behaviors in listIterator.add() logic, using brand new
+iterator logic.
+
+Allowed a String to be passed to ContentList.add(int, Object).
+
+Simplified JDOMAbout and renamed info.xml to jdom-info.xml, so
+getResourceAsStream() won't suffer any name collision.
+
+Fixed tiny issue where CDATA could be set with illegal character content.
+
+Added logic to escape some special characters in namespace URIs.
+
+Fixed bug where the attribute type would change on a setAttribute() call.
+
+Improved performance on Namespace handling.
+
+Improved and clarified Javadocs.
+
+
+* * * * * * JDOM 1.0 (tag: jdom_1_0) from JDOM Beta10 * * * * * *
Added a new lib/jaxen-jdom.jar that solves some XPath ancestry problems
introduced by the Parent interface. See the new lib/jaxen.readme for
View
@@ -100,3 +100,10 @@ be sure to include enough information to reproduce the bug and full exception
stack traces. You might also want to read the FAQ at http://jdom.org to find
out if your problem is not really a bug and just a common misunderstanding
about how XML or JDOM works.
+
+
+Searching for Information
+=========================
+
+The JDOM mailing lists are archived and easily searched at
+http://jdom.markmail.org.
View
@@ -4,7 +4,7 @@ Items that need to be done:
None!
---- ITEMS TO CONSIDER FOR 1.1 ---
+--- ITEMS TO CONSIDER FOR 1.2 ---
* Output support for surrogate pairs.
View
@@ -1,4 +1,4 @@
-<!-- $Id: build.xml,v 1.54 2006/12/29 03:31:43 jhunter Exp $ -->
+<!-- $Id: build.xml,v 1.55 2007/11/10 05:28:57 jhunter Exp $ -->
<!--
For instructions on how to build JDOM, please view the README.txt file.
@@ -30,15 +30,17 @@ For instructions on how to build JDOM, please view the README.txt file.
<property name="Name" value="JDOM"/>
<property name="name" value="jdom"/>
- <property name="version" value="1.0.1"/>
+ <property name="version" value="1.1"/>
<property name="version.impl" value="${version}"/>
<property name="version.spec" value="1.0"/>
- <property name="year" value="2004"/>
+ <property name="year" value="2007"/>
<echo message="----------- ${Name} ${version} ------------"/>
<property name="compile.debug" value="true" />
<property name="compile.optimize" value="true" />
+ <property name="compile.target" value="1.2" />
+ <property name="compile.source" value="1.2" />
<property name="compile.deprecation" value="true" />
<property name="src.dir" value="./src/java"/>
@@ -166,6 +168,8 @@ For instructions on how to build JDOM, please view the README.txt file.
destdir="${build.dest}"
debug="${compile.debug}"
optimize="${compile.optimize}"
+ target="${compile.target}"
+ source="${compile.source}"
deprecation="${compile.deprecation}">
<exclude name="**/Jaxen*" unless="jaxen.present"/>
@@ -183,6 +187,8 @@ For instructions on how to build JDOM, please view the README.txt file.
destdir="${build.dest}"
debug="${compile.debug}"
optimize="${compile.optimize}"
+ target="${compile.target}"
+ source="${compile.source}"
deprecation="${compile.deprecation}">
<classpath refid="compile.class.path"/>
</javac>
@@ -197,6 +203,8 @@ For instructions on how to build JDOM, please view the README.txt file.
destdir="${samples.dest}"
debug="${compile.debug}"
optimize="${compile.optimize}"
+ target="${compile.target}"
+ source="${compile.source}"
deprecation="${compile.deprecation}">
<classpath refid="run.class.path"/>
</javac>
@@ -13,9 +13,10 @@
complex and memory-consumptive options that current API
offerings provide.
</description>
- <copyright>2000-2004, Jason Hunter</copyright>
+ <copyright>2000-2007, Jason Hunter</copyright>
<license>BSD/Apache style, see LICENSE.txt</license>
- <support>See the jdom-interest mailing list at jdom.org</support>
+ <support>See the jdom-interest mailing list at jdom.org,
+ searchable at http://jdom.markmail.org</support>
<web-site>http://www.jdom.org/</web-site>
<!--
The following list of authors was initially extracted from @author
@@ -1,8 +1,8 @@
/*--
- $Id: Attribute.java,v 1.55 2006/11/16 09:15:49 jhunter Exp $
+ $Id: Attribute.java,v 1.56 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -62,7 +62,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* An XML attribute. Methods allow the user to obtain the value of the attribute
* as well as namespace and type information.
*
- * @version $Revision: 1.55 $, $Date: 2006/11/16 09:15:49 $
+ * @version $Revision: 1.56 $, $Date: 2007/11/10 05:28:58 $
* @author Brett McLaughlin
* @author Jason Hunter
* @author Elliotte Rusty Harold
@@ -72,7 +72,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
public class Attribute implements Serializable, Cloneable {
private static final String CVS_ID =
- "@(#) $RCSfile: Attribute.java,v $ $Revision: 1.55 $ $Date: 2006/11/16 09:15:49 $ $Name: $";
+ "@(#) $RCSfile: Attribute.java,v $ $Revision: 1.56 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
/**
* Attribute type: the attribute has not been declared or type
@@ -1,8 +1,8 @@
/*--
- $Id: AttributeList.java,v 1.23 2004/02/28 03:30:27 jhunter Exp $
+ $Id: AttributeList.java,v 1.24 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -66,7 +66,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* @author Alex Rosen
* @author Philippe Riand
* @author Bradley S. Huffman
- * @version $Revision: 1.23 $, $Date: 2004/02/28 03:30:27 $
+ * @version $Revision: 1.24 $, $Date: 2007/11/10 05:28:58 $
* @see CDATA
* @see Comment
* @see Element
@@ -78,7 +78,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
implements List, java.io.Serializable {
private static final String CVS_ID =
- "@(#) $RCSfile: AttributeList.java,v $ $Revision: 1.23 $ $Date: 2004/02/28 03:30:27 $ $Name: $";
+ "@(#) $RCSfile: AttributeList.java,v $ $Revision: 1.24 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
private static final int INITIAL_ARRAY_SIZE = 5;
@@ -1,8 +1,8 @@
/*--
- $Id: CDATA.java,v 1.31 2006/11/16 08:16:35 jhunter Exp $
+ $Id: CDATA.java,v 1.32 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -63,7 +63,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* CDATA makes no guarantees about the underlying textual representation of
* character data, but does expose that data as a Java String.
*
- * @version $Revision: 1.31 $, $Date: 2006/11/16 08:16:35 $
+ * @version $Revision: 1.32 $, $Date: 2007/11/10 05:28:58 $
* @author Dan Schaffer
* @author Brett McLaughlin
* @author Jason Hunter
@@ -73,7 +73,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
public class CDATA extends Text {
private static final String CVS_ID =
- "@(#) $RCSfile: CDATA.java,v $ $Revision: 1.31 $ $Date: 2006/11/16 08:16:35 $ $Name: $";
+ "@(#) $RCSfile: CDATA.java,v $ $Revision: 1.32 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
/**
* This is the protected, no-args constructor standard in all JDOM
@@ -1,8 +1,8 @@
/*--
- $Id: Comment.java,v 1.32 2004/02/11 21:12:43 jhunter Exp $
+ $Id: Comment.java,v 1.33 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -60,14 +60,14 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* An XML comment. Methods allow the user to get and set the text of the
* comment.
*
- * @version $Revision: 1.32 $, $Date: 2004/02/11 21:12:43 $
+ * @version $Revision: 1.33 $, $Date: 2007/11/10 05:28:58 $
* @author Brett McLaughlin
* @author Jason Hunter
*/
public class Comment extends Content {
private static final String CVS_ID =
- "@(#) $RCSfile: Comment.java,v $ $Revision: 1.32 $ $Date: 2004/02/11 21:12:43 $ $Name: $";
+ "@(#) $RCSfile: Comment.java,v $ $Revision: 1.33 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
/** Text of the <code>Comment</code> */
protected String text;
@@ -1,8 +1,8 @@
/*--
- $Id: Content.java,v 1.5 2004/09/07 06:37:20 jhunter Exp $
+ $Id: Content.java,v 1.6 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -72,7 +72,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
*
* @author Bradley S. Huffman
* @author Jason Hunter
- * @version $Revision: 1.5 $, $Date: 2004/09/07 06:37:20 $
+ * @version $Revision: 1.6 $, $Date: 2007/11/10 05:28:58 $
*/
public abstract class Content implements Cloneable, Serializable {
@@ -1,8 +1,8 @@
/*--
- $Id: ContentList.java,v 1.41 2007/11/09 08:53:03 jhunter Exp $
+ $Id: ContentList.java,v 1.42 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -72,15 +72,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* @see ProcessingInstruction
* @see Text
*
- * @version $Revision: 1.41 $, $Date: 2007/11/09 08:53:03 $
+ * @version $Revision: 1.42 $, $Date: 2007/11/10 05:28:58 $
* @author Alex Rosen
* @author Philippe Riand
* @author Bradley S. Huffman
*/
final class ContentList extends AbstractList implements java.io.Serializable {
private static final String CVS_ID =
- "@(#) $RCSfile: ContentList.java,v $ $Revision: 1.41 $ $Date: 2007/11/09 08:53:03 $ $Name: $";
+ "@(#) $RCSfile: ContentList.java,v $ $Revision: 1.42 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
private static final long serialVersionUID = 1L;
@@ -1,8 +1,8 @@
/*--
- $Id: DataConversionException.java,v 1.13 2004/02/06 09:28:30 jhunter Exp $
+ $Id: DataConversionException.java,v 1.14 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -60,14 +60,14 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* Thrown when a data conversion from a string to value type fails, such as
* can happen with the {@link Attribute} convenience getter functions.
*
- * @version $Revision: 1.13 $, $Date: 2004/02/06 09:28:30 $
+ * @version $Revision: 1.14 $, $Date: 2007/11/10 05:28:58 $
* @author Brett McLaughlin
* @author Jason Hunter
*/
public class DataConversionException extends JDOMException {
private static final String CVS_ID =
- "@(#) $RCSfile: DataConversionException.java,v $ $Revision: 1.13 $ $Date: 2004/02/06 09:28:30 $ $Name: $";
+ "@(#) $RCSfile: DataConversionException.java,v $ $Revision: 1.14 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
/**
* Constructs an exception where the named construct couldn't be converted
@@ -1,8 +1,8 @@
/*--
- $Id: DefaultJDOMFactory.java,v 1.6 2004/09/01 05:25:38 jhunter Exp $
+ $Id: DefaultJDOMFactory.java,v 1.7 2007/11/10 05:28:58 jhunter Exp $
- Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
+ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -62,15 +62,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* Creates the standard top-level JDOM classes (Element, Document, Comment,
* etc). A subclass of this factory might construct custom classes.
*
- * @version $Revision: 1.6 $, $Date: 2004/09/01 05:25:38 $
+ * @version $Revision: 1.7 $, $Date: 2007/11/10 05:28:58 $
* @author Ken Rune Holland
* @author Phil Nelson
* @author Bradley S. Huffman
*/
public class DefaultJDOMFactory implements JDOMFactory {
private static final String CVS_ID =
- "@(#) $RCSfile: DefaultJDOMFactory.java,v $ $Revision: 1.6 $ $Date: 2004/09/01 05:25:38 $ $Name: $";
+ "@(#) $RCSfile: DefaultJDOMFactory.java,v $ $Revision: 1.7 $ $Date: 2007/11/10 05:28:58 $ $Name: $";
public DefaultJDOMFactory() { }
Oops, something went wrong.

0 comments on commit a652c0e

Please sign in to comment.