Skip to content
Commits on Mar 14, 2012
  1. @rolfl

    Fixes #69 - Documentation for the requirement to have Namespace-Aware…

    rolfl committed
    … DOM documents as input.
  2. @rolfl

    Ignore issues related to Attribute order in Jaxen. At least this way …

    rolfl committed
    …the JDOM2 process will have a clean ant junit test
    
    Jaxen ignores the attribute order coming from JDOM, so the XPath results get messed up. See Jaxen issue https://jira.codehaus.org/browse/JAXEN-215
  3. @rolfl
  4. @rolfl
  5. @rolfl

    Reduce visibility of additionalNamespaces from protected to package-p…

    rolfl committed
    …rivate.
    
    Fix some Javadoc
Commits on Mar 13, 2012
  1. @rolfl

    JavaDoc tidyup

    rolfl committed
Commits on Mar 12, 2012
  1. @rolfl

    Fixes #66 Attribute/DTD-default aware output processor.

    rolfl committed
    This fix goes far beyond moving the contrib code to core. Instead, adds a new flag property to Attribute, which indicates whether that Attribute is specified as part of the XML input document, or added as a default by the DTD. The JDOM SAXHandler respects the Attributes2.isSpecified() methods to in turn set the isSPecified flag on the Attribute. The end result is that the isSpecified flag is set on all Attributes unless the attribute was provided by a Default (or 'fixed') DTD declaration.
    
    I cannot find comprehensive documentation for it, but it appears that at least the Xerces parser also manages the specified flag for XML Schema derived attributes.
    
    Additionally, the Format class has been extended to support the isSpecifiedAttributesOnly() method. This can be set with Format.setSpecifiedAttributesOnly(boolean).
    
    All the Outputters (XML, SAX, StAX, DOM) honour the Format.isSpecifiedAttributesOnly() flag. As a consequence, you can now easily exclude those attributes which are created only by DTD (XML Schema) devices when outputting your XML.
    
    The Attribute class itself has been modified to set the specified flag to true if any change is direclty made to the Attribute. The logic being that, if you change the attribute, then it is not what was set in the DTD, and it is now 'specified'.
Commits on Mar 8, 2012
  1. @rolfl
Commits on Mar 1, 2012
  1. @rolfl

    Fixes #67 - TextHelper to core

    rolfl committed
Commits on Feb 29, 2012
  1. @rolfl
  2. @rolfl

    Issue #64 - contrib to core: Location-information for SAX Parser.

    rolfl committed
    Add support for location information to all the JDOMFactories. This
    creates a new compatibility issue with JDOM 1.x (you need to add 'int line, int col, ' to all the JDMFcatory methods that create JDOM Content instances)
Commits on Feb 28, 2012
  1. @rolfl

    More JavaDoc fixes

    rolfl committed
  2. @rolfl
  3. @rolfl

    Mark deprecated - moved to core.

    rolfl committed
  4. @rolfl
  5. @rolfl

    Fixes #68 - ".." XPath does not work for Attributes.

    rolfl committed
    Also move XPathHelper from contrib to core. Include battery of tests.
Commits on Feb 26, 2012
  1. @rolfl
Commits on Feb 23, 2012
  1. @rolfl

    Fix Typo

    rolfl committed
  2. @rolfl

    Fixes #65 : Add sort logic to Element (and ContentList).

    rolfl committed
    Move sorting from Contrib - this is not a straight port, rather, it is the implementation of the same core functionality, but using all the nice generics tricks (and some not-so-nice ones).
Commits on Feb 18, 2012
  1. @rolfl
Commits on Feb 17, 2012
  1. @rolfl

    Tidy up maven processes

    rolfl committed
Commits on Feb 15, 2012
  1. @rolfl
Commits on Feb 14, 2012
  1. @rolfl

    Make samples build after contrib

    rolfl committed
    Remove redundant JavaDoc
  2. @rolfl

    Tidy up build messages.

    rolfl committed
    Deprecation in junit code - still produces javac deprecation message.
    Somehow contrib code 'schema' was never included in my eclipse path, it was never 'generified'. This is now resolved.
  3. @rolfl

    Fixes #47 - serialization.

    rolfl committed
    Also Fix FindBugs issues - some serialization warnings corrected.
  4. @rolfl

    Coverage improvement. Found bug in ArrayCopy.copyOfRange.

    rolfl committed
    Simplified NamespaceStack by joining duplicate code.
  5. @rolfl

    Issue #47 - Serialization audit

    rolfl committed
    Use SerialVersionUID 200L (version 2.0.0).
    Rework core serialization:
     - all Content is 'detached' now after serialization (but Element and Document re-attache where required on deserialization).
     - Namespace is now serializable
    Remove the 'new' JDOMRuntimeException, replace it with core Java Illegal*Exceptions.
    Add serialization tests to Filter classes. Filters are still serializable, not sure why that is needed.
    Fiox up some code coverage tests.... including complicated 'Bridge Methods' for co-variant return-type bridge methods.
Commits on Feb 12, 2012
  1. @rolfl
  2. @rolfl
  3. @rolfl
Commits on Feb 11, 2012
  1. @rolfl

    Implement a new concept of a thin DOM 'wrapper' around JDOM objects.

    rolfl committed
    This makes it possible to feed JDOM content in to libraries that currently process DOM only, like the native Java XPath api, as well as Xalan.
    Additionally, add two XPath implementations that use this new DOM layer to feed the native Java XPath API as well as the Xalan API
  2. @rolfl

    Make XPath abstract test ignore the order of Namespace results.

    rolfl committed
    Also make items protected instead of private so subclasses can access them.
    Finally, make the ability to test the string() XPath results configurable
  3. @rolfl
  4. @rolfl

    Change the build order and classpaths to include Xalan libraries.

    rolfl committed
    Also build 'junit' after 'contrib' so now tests in junit may test contrib code.
  5. @rolfl

    Some XPath libraries specify a null NamespaceURI when they mean "".

    rolfl committed
    The code should allow "" and null to mean 'No Namespace'.
    Also add copyright notices
Something went wrong with that request. Please try again.