Community Component 25.1
Community Component Help

# Export XML Documents from the Content component

You can send a `DREEXPORTXML` action (case sensitive) from your Web browser to export XML documents from one or more Content databases (use `DREEXPORTIDX` to export IDX documents):

    http://ContentHost:indexPort/DREEXPORTXML?FileName=fileName&Compress=True|False&DatabaseMatch=databaseCSV&BatchSize=size&MinDate=minDate&MaxDate=maxDate

where:

`ContentHost` | The IP address or name of the Content component machine.
`indexPort` | The Content component index port (the value of `IndexPort` in the `[Server]` section of the Content component configuration file).
`fileName` | The path to the location where you store the XML files to export. Double-byte file names are acceptable. The path must include a basic file name which Content postfixes with incremental numbers and an appropriate extension. If you do not specify a file name, Content exports the files to the current working directory, and Content creates a file name in the format `AUTN-XML-EXPORT-host-port-date-time-incrementalNumber.extension`.
`Compress` | Whether to compress the exported files. Set `Compress` to `False` if you do not want to compress the files.
`databaseCSV` | One or more databases to export documents from. By default, Content exports from all databases. To specify multiple databases, separate them with plus symbols, commas, or spaces (there must be no space before or after plus symbols or commas).
`size` | The maximum number of document sections to export to one XML file. The default value is 100,000 sections.
`minDate` | The earliest creation date or time that a document can have to export.
`maxDate` | The latest creation date or time that a document can have to export.

NOTE: For additional action parameters, refer to the Content component Reference.

## Example 1:

    http://12.3.4.56:20001/DREEXPORTXML?FileName=/export/data/backup/output&Compress=True&DatabaseMatch=News,Archive&BatchSize=1000&MinDate=01/01/2003&MaxDate=01/01/2004

In this example, Content exports all XML documents that have dates between 1 January 2003 and 1 January 2004. It exports from the `News` and `Archive` databases to a series of compressed files in the `/export/data/backup` directory. Content names the files created in this directory `output-0.xml.gz`, `output-1.xml.gz` and so on.

## Example 2:

    http://12.3.4.56:20001/DREEXPORTXML?

In this example, Content exports all XML documents to a series of compressed files in the Content current working directory. It names the files created in this directory `AUTN-XML-EXPORT-12.04.2005-02.15.41-0.xml.gz`, `AUTN-XML-EXPORT-12.04.2005-02.15.41-1.xml.gz` and so on.

NOTE: Content does not split multiple-section documents across chunks, so the specified `BatchSize` is not used exactly if it splits a multiple-section document.

NOTE: You do not need to uncompress compressed XML files before you index them. For example, the action `DREADD?output-0.xml.gz` indexes the `output-0.xml.gz` file correctly without you having to uncompress the file first.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Community Component 25.1

Topic Title: Export XML Documents from the Content component