Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-150

Xerces SAX parser should always be chosen

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • odfdom-0.8.6
    • odfdom-0.9
    • java
    • None
    • Operating System: All
      Platform: All
    • 220

    Description

      Currently in OdfPackage and OdfDocument the SAX Parser is taken by considering environment settings using

      SAXParserFactory saxFactory = SAXParserFactory.newInstance();

      This brings up problems if none Xerces SAX Parser are being used, when the the following Xerces feature are being set.

      As there is a Xerces dependency explict by DOM inheritance, the same dependency should be made explicitly using

      SAXParserFactory saxFactory = new org.apache.xerces.jaxp.SAXParserFactoryImpl();

      Changing one line in each OdfPackage and OdfDocument.

      Patch will follow..

      Attachments

        Activity

          People

            svanteschubert@odftoolkit.org Svante Schubert
            svanteschubert@odftoolkit.org Svante Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment