Interface DocumentXMLExporter

All Superinterfaces:
Serializable
All Known Implementing Classes:
DocumentXMLExporterImpl

public interface DocumentXMLExporter extends Serializable
Handles the XML export of a document.
Since:
5.6
Author:
Antoine Taillefer
  • Method Details

    • exportXML

      InputStream exportXML(DocumentModel doc, CoreSession session)
      Exports a document to XML as an InputStream.
      Parameters:
      doc - the document
      session - the core session
      Returns:
      the input stream
    • exportXMLAsInputSource

      InputSource exportXMLAsInputSource(DocumentModel doc, CoreSession session)
      Exports a document to XML as an InputSource.
      Parameters:
      doc - the document
      session - the core session
      Returns:
      the input source
    • exportXMLAsByteArray

      byte[] exportXMLAsByteArray(DocumentModel doc, CoreSession session)
      Exports a document to XML as a byte array.
      Parameters:
      doc - the document
      session - the core session
      Returns:
      the byte array