Skip to content

Usecases

In this section we try to explain some normal usecases for Kaiba.

It is highly recommended that you go through the introduction before continuing

Kaiba + CSV

CSV is one of the most used filetypes when exchanging data by files. Here are some examples to look at when working with csv

Kaiba + XML

XML is... ugh... but a lot of legacy systems expect XML as input and produces XML as output. We won't get rid of XML anytime soon, but atleast with Kaiba we can live with it.

There are three things to look out for when working with XML.

  1. It's impossible to know if a child of an element is supposed to be an array or not.
  2. XML creates structure with Elements, but store data as either parameters or as text between element opening and closing tag.

Because of this there are no 1 to 1 XML->JSON converter that will work for any XML. Conventions must be chosen but a good starting point is the Parker convention

Other usecases

Add an issue at our issue tracker for request for other usecases/examples