com.icl.saxon.trax.serialize
Interface SerializerHandler


public interface SerializerHandler

Interface that supplements DocumentHandler and ContentHandler with additional methods suitable for serialization. This interface is required only for XML and HTML serializers.


Method Summary
 void endPreserving()
          Ends a whitespace preserving section.
 void endUnescaping()
          Ends an un-escaping section.
 void startPreserving()
          Starts a whitespace preserving section.
 void startUnescaping()
          Starts an un-escaping section.
 

Method Detail

startUnescaping

public void startUnescaping()
Starts an un-escaping section. All characters printed within an un-escaping section are printed as is, without escaping special characters into entity references. Only XML and HTML serializers need to support this method.

The contents of the un-escaping section will be delivered through the regular characters event.


endUnescaping

public void endUnescaping()
Ends an un-escaping section.
See Also:
startUnescaping()

startPreserving

public void startPreserving()
Starts a whitespace preserving section. All characters printed within a preserving section are printed without indentation and without consolidating multiple spaces. This is equivalent to the xml:space="preserve" attribute. Only XML and HTML serializers need to support this method.

The contents of the whitespace preserving section will be delivered through the regular characters event.


endPreserving

public void endPreserving()
Ends a whitespace preserving section.
See Also:
startPreserving()