, itemifsingletonlist=True, postfunction=None)

Reads a NIML dataset


fn: str

Filename of NIML dataset

itemifsingletonlist: boolean

If True and the NIML dataset contains of a single NIML element, then that element is returned. Otherwise a list of NIML element is returned.

postfunction: None or callable

If not None then postfunction is applied to the result from reading the NIML dataset.


niml: list or dict

(list of) NIML element(s)