Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7
-
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