Class CmsXmlSaxWriter

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.opencms.util.CmsXmlSaxWriter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler

public class CmsXmlSaxWriter extends DefaultHandler implements LexicalHandler
Simple SAX event handler that generates a XML (or HTML) file from the events caught.

This can be used for writing large XML files where keeping a DOM structure in memory might cause out-of-memory issues, like e.g. when writing the OpenCms export files.

It can also be used if a ContentHandler is needed that should generate a XML / HTML file from a series of SAX events.

Since:
6.0.0