Skip to main content

Using MarkLogic Content Pump (mlcp)

Creating Documents from Delimited Text Files

Use the delimited_text input file type to import content from a delimited text file and create an XML or JSON document corresponding to each line. For line-delimited JSON data, see Creating Documents from Line-Delimited JSON Files.

The following options are commonly used in the generation of documents from delimited text files:

  • -input_file_type delimited_text

  • -document_type xml or -document_type json

  • -delimiter

  • -uri_id

  • -delimited_root_name (XML output only)

  • -data_type (JSON output only)

The use of these and other supporting options is covered in this section.