The xerces 1.0.4 serializers are not properly initialized until one of
the as...Handler methods is invoked. 
In your case call serializer.asContentHandler() before serializing.
 
This looks like a bug to me.


It's a feature introduced to enable reuse of the serializers.

The fault is that Serializer is both an interface and an implementation
and this behavior where asDOMSerializer() is not called it supported. In
the next version of the serializers the interface will be separate and
application developers will be required to call asDOMSerializer() on the
serializer to serialize a document, thereby always initializing it.


arkin


-- 
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

Reply via email to