Details
Description
it is really a good news that xerces dependency is removed in 1.1 release. giving a lot of people are using jdk 1.5 + today, it is really a burden to bundle another xerces library which often cause compatibility issues. but it is still take me 1 day to figure out how to run without xerces because by default the castor-xml still uses xerces SAX parser to load mappings. can you make the the default configuration to not rely on xerces?
here is what i've changed:
- Defines the default XML parser to be used by Castor.
- The parser must implement org.xml.sax.Parser.
#
org.exolab.castor.parser=org.xml.sax.helpers.XMLReaderAdapter
- Defines the (default) XML serializer factory to use by Castor, which must
- implement org.exolab.castor.xml.SerializerFactory;
- Default is org.exolab.castor.xml.XercesXMLSerializerFactory
- org.exolab.castor.xml.serializer.factory=org.exolab.castor.xml.XercesXMLSerializerFactory
org.exolab.castor.xml.serializer.factory=org.exolab.castor.xml.XercesJDK5XMLSerializerFactory
two lines but took me one day to figure it out.
thanks
Issue Links
- is related to
-
CASTOR-2155
Fix incorrect dependency tp Xerces 1.4.0 in src/doc/dependencies.xml
-
- relates to
-
CASTOR-2032
using the internal Xerces parser information needs update
-
-
CASTOR-267
Switch to xerces 2.x
-
1. |
Create new HTML page for dependencies | |
|
Werner Guttmann |
|
No, I cannot really, as there's plenty of (corporate) users still relying on JDK 1.3 and 1.4. And with them, they'd have to change existing applications to get things working again when upgrading to newer Castor releases. Se, Castor has been around for nearly 9+ yrs now, and as such we have to maintain backwards compatibility to a certain degree.
Given that there's a HTML page that highlights this issue already, and seeing that it has not been easy enough for you to find this page, I guess the documentation could and should be improved. Can you have a look at
http://castor.org/xml-faq.html#Serialization
and let me know what you'd like to see added. Please note that this page has already changed in SVN, so parts of your request have been met already.
Where else would you want to see changes being introduced, e.g. links to the FAQ entry, etc ? Or should this information be moved/copied elsewhere, to a more prominent page ?