Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2050

Serializer support for DOM Level 3 APIs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • DOM, Serialization
    • None

    Description

      The serializer has a
      Serializer ser = SerializerFactor.getSerializer(props);
      that can then be used to serialize a DOM with:
      DOMSerializer domSerializer = ser.asDOMSerializer();
      domSerializer.serialize(doc);

      However, the doc to be serialized must be a DOM level 2 docuement.

      The serializer should support DOM leve 3 APIs.
      We probably need a
      ser.asDOM3Serializer();
      method on the Serializer interface which would return a DOM3Serializer object.

      I suggest that a class like DOM3TreeWalker exist internally, much like TreeWalker,
      which would contain the bulk of the necessary DOM 3 API calls in its serialization.
      The core of the serializer code should be unaffected.

      • Brian Minchau

      Attachments

        1. dom3-ls-serializer.zip
          61 kB
          nddelima

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            minchau@ca.ibm.com Brian Minchau
            Brian Minchau Brian Minchau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: